4 of 17
4
plugin: Image Sizer
Posted: 01 November 2007 05:09 PM   [ Ignore ]   [ # 55 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

Erin
it already has max-sizes i have just hard coded it into the plug-in but i could open it up as a param.
ill play around with that.


Dabbledoo
if you just put in {thumbs}like below what is returned

{exp:weblog:entries weblog="appletell" orderby="date" sort="desc" limit="15" offset="3" disable=""}
{thumbs}
{
/exp:weblog:entries}

also the plug-in does not return anything if it fails at finding the src img ect.

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 01 November 2007 09:27 PM   [ Ignore ]   [ # 56 ]  
Lab Technician
RankRankRankRank
Total Posts:  1005
Joined  11-01-2002
lumis - 01 November 2007 05:09 PM

Erin
it already has max-sizes i have just hard coded it into the plug-in but i could open it up as a param.
ill play around with that.

Not a big deal, I coded around with EE conditionals

Profile
 
 
Posted: 02 November 2007 06:14 AM   [ Ignore ]   [ # 57 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  184
Joined  10-24-2006

lumis -

here is a template with just the code you told me to put in:

http://www.appletell.com/apple/testimg/

thoughts?

 Signature 

Dabbledoo Media

———————————————————————-
Gadgetell - Tech News and Reviews
Gamertell - Gaming Hardware and Product News
Appletell - Apple News and Rumors

Profile
 
 
Posted: 02 November 2007 07:42 AM   [ Ignore ]   [ # 58 ]  
Summer Student
Avatar
Total Posts:  14
Joined  05-24-2007
Dabbledoo - 02 November 2007 06:14 AM

lumis -

here is a template with just the code you told me to put in:

http://www.appletell.com/apple/testimg/

thoughts?

Are you trying to resize images from dabbledoo.com to show them in appletell.com? or appletell was just a “test server” where you put the test template?

This plugin doesn’t resize images from other servers.

If you are planning to use the plugin at dabbledoo.com, I think the problem is with your EE installation, which seems to be inside the “ee” folder.

If that is the problem, I think it’ll be fixed soon…

Anyway, that is what I think about your issue, wait and see what lumis responds

Profile
 
 
Posted: 02 November 2007 09:12 AM   [ Ignore ]   [ # 59 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  184
Joined  10-24-2006

Thank you for the reply, Gonzalingui!

OK, our EE installation is on dabbledoo.com as you mentioned.  We have several sites that run off of that installation.  Appletell.com is getting all of its information from dabbledoo.com/ee… which is why the images are hosted on the dabbledoo.com domain.

Lumis.. your thoughts on the issue?

 Signature 

Dabbledoo Media

———————————————————————-
Gadgetell - Tech News and Reviews
Gamertell - Gaming Hardware and Product News
Appletell - Apple News and Rumors

Profile
 
 
Posted: 02 November 2007 04:26 PM   [ Ignore ]   [ # 60 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

Gonzalingui
Thanks for the ideas and your help dealing with EE setups that are not in the sites document root folder
i have updated the plug-in for download to deal with setups like Gonzalingui’s
i have also added in EE’s filename security (just in case)

Dabbledoo
Well humm im not sure how that would work first it would have to fetch the remote image (since it is on a different domain and not available from the calling domains document root) and resize it

that would be no big deal to do really but i cant really check for updates on the remote image based on time.
well sometimes you can but not really very reliably. and i don’t think you would want your server doing a http request for every image you are resizing.

I would assume that boath these sites are on the same server but have different document roots
so could you not just create a symbolic link on www.appletell.com/ document root that points to the directory with your images on dabbledoo.com/

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 02 November 2007 05:34 PM   [ Ignore ]   [ # 61 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  184
Joined  10-24-2006

I used the instructions here to create a “symbolic link” between the appletell doc root and the appletell images folder on dabbledoo.com:

http://help.hardhathosting.com/question.php/95

Still does not work.

Your plugin works great from the dabbledoo.com domain… see here: http://www.dabbledoo.com/apple/testimg but it does not work from http://www.appletell.com/apple/testimg

Please advise.  We really need your plugin to work since PhpThumb absolutely kills the server.

Thanks!

 Signature 

Dabbledoo Media

———————————————————————-
Gadgetell - Tech News and Reviews
Gamertell - Gaming Hardware and Product News
Appletell - Apple News and Rumors

Profile
 
 
Posted: 02 November 2007 08:10 PM   [ Ignore ]   [ # 62 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

Dabbledoo
make sure the user that is running the host for domain A has proper read wright permissions to the directory on host B
also check that you can view the images in your browser not sure the below example is how you have it pathed http://www.dabbledoo.com/ee/images/uploads/appletell/wilan-logo.jpg

http://uw714doc.sco.com/en/FD_files/Getting_to_a_file.html#Creating_a_link_to_a_directory


if none of that works
try turning on template debugging in the control panel or i could add in some output so we can see what is going on

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 15 November 2007 05:33 AM   [ Ignore ]   [ # 63 ]  
Summer Student
Total Posts:  25
Joined  08-06-2007

I was wandering if anybody could help. I have a feeling that my error is because we are hosting on a windows server:

Notice: Undefined index: DOCUMENT_ROOT in D:\Domains\pfh.org.uk\wwwroot\admin\plugins\pi.imgsizer.php on line 129

I believe that DOCUMENT_ROOT might not be supported. Sorry if this is a newbie question to still getting to grips with php and EE.

My code look like the following:

{exp:imgsizer:size src="{available_properties_image}" width="90" alt="{title}"}

Cheers,
Darren

 Signature 

dlw - Hull based freelance web designer

Profile
 
 
Posted: 15 November 2007 06:09 AM   [ Ignore ]   [ # 64 ]  
Summer Student
Total Posts:  25
Joined  08-06-2007

As suspected the DOCUMENT_ROOT on IIS isn’t supported but if you create a seperate php.ini file and set the doc_root.

; The root of the PHP pages, used only if nonempty.
; if
PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
;
see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root
= "D:\Domains\pfh.org.uk\wwwroot"

 Signature 

dlw - Hull based freelance web designer

Profile
 
 
Posted: 15 November 2007 10:16 AM   [ Ignore ]   [ # 65 ]  
Grad Student
Rank
Total Posts:  76
Joined  08-03-2002
lumis - 01 November 2007 12:03 AM

Erin
yes you can control the height with 1.5 the width is scaled proportionally.

about your additional request for square sizes. i plan on doing this soon where it would resize depending on the width or height then chop off the additional “top and bottom” or “right and left” depending. very similar to how flickr does there “square size”

any news on square images (zoom crop) - that feature would certainly be very helpful.

thanks for a nice plugin.

Profile
 
 
Posted: 20 November 2007 05:20 AM   [ Ignore ]   [ # 66 ]  
Summer Student
Total Posts:  4
Joined  03-15-2006

Excellent plugin, but… I get following errormessage:

Notice: Undefined index:  extension in /hsphere/local/home/felicia/expressionengine.aomedia.se/svante/plugins/pi.imgsizer.php on line 128.

The strange thing is that it resizes my image ok, but leaves the errormessage. Any clues?

Heres my code that I’m using:

{exp:imgsizer:size src="/images/uploads{exp:extract_url_plus show="&#xfi;lename.&#xex;tension"}{bild_1} height="154" alt="{title}" parse="inward"}

See http://expressionengine.aomedia.se/

Profile
 
 
Posted: 20 November 2007 01:42 PM   [ Ignore ]   [ # 67 ]  
Lab Technician
RankRankRankRank
Total Posts:  1005
Joined  11-01-2002

I have found a bug (I think).

I am trying to call ImageSizer where I get the URL from some PHP code I have.

The following does not work, even though the image most definately exists:

{exp:imgsizer:size src="<?php echo "http://thedalzells.org/photos/September/IMG_2758.JPG" ?>" width="{img_size}" alt="{title}" justcheck="yes" debug="1"}

EDIT: OK, still an issue…it seems that this plugin doesn’t handle PHP properly.

Profile
 
 
Posted: 22 November 2007 02:47 AM   [ Ignore ]   [ # 68 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

echo “”;
parsing input/output

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 22 November 2007 10:21 AM   [ Ignore ]   [ # 69 ]  
Lab Technician
RankRankRankRank
Total Posts:  1005
Joined  11-01-2002
lumis - 22 November 2007 02:47 AM

echo “”;
parsing input/output

huh?

Profile
 
 
Posted: 22 November 2007 11:22 AM   [ Ignore ]   [ # 70 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

the php parsing stage would have to be set to input instead of output

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 22 November 2007 11:25 AM   [ Ignore ]   [ # 71 ]  
Lab Technician
RankRankRankRank
Total Posts:  1005
Joined  11-01-2002

It is.

Profile
 
 
Posted: 22 November 2007 11:51 AM   [ Ignore ]   [ # 72 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

if you put just the image url in with no php does it work?

i just tried it with php as the src= param and it worked fine. do you have 1.5.2?

{exp:imgsizer:size src="<?php echo "http://www.lumis.com/media/images/336425407_efe2c8a5c7_m.jpg" ?>" height="100" width="100" debug="1"}

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
   
4 of 17
4
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65027 Total Logged-in Users: 22
Total Topics: 82117 Total Anonymous Users: 14
Total Replies: 441316 Total Guests: 189
Total Posts: 523433    
Members ( View Memberlist )