5 of 17
5
plugin: Image Sizer
Posted: 22 November 2007 01:04 PM   [ Ignore ]   [ # 73 ]  
Lab Technician
RankRankRankRank
Total Posts:  1005
Joined  11-01-2002

Hmmm…it works with a hard-coded URL string, just not my variable. OK..not the plugin’s fault.

Thanks for looking into it.

Profile
 
 
Posted: 27 November 2007 05:35 PM   [ Ignore ]   [ # 74 ]  
Lab Assistant
RankRank
Total Posts:  110
Joined  04-23-2007

I’m using the Image Sizer plugin to display an index of my entries, and all works great when all the images are there.  However, when an entry does not have a image, I get the following error:

Notice: Undefined index: extension in .../plugins/pi.imgsizer.php on line 128

Is there a way to not have this error show up when there’s no image?  I would like just nothing to show up.  Here’s the code I’m using:

{exp:imgsizer:size src="/images/uploads/event_images{exp:extract_url_plus show="i;lename.x;tension"}{event_image} width="170" alt="{title}" parse="inward"}

I’ve tried putting in a conditional like this, but this doesn’t work either.

{if event_image != ""}
{exp
:imgsizer:size src="/images/uploads/event_images{exp:extract_url_plus show="i;lename.x;tension"}{event_image} width="170" alt="{title}" parse="inward"}
{/if}

Also, strangely, the error only shows up in Firefox (Mac).  Safari and Camino doesn’t show the error.

Profile
 
 
Posted: 27 November 2007 05:59 PM   [ Ignore ]   [ # 75 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32911
Joined  05-14-2004

eclectiv - I don’t use this plugin, but have you considered using the search: parameter to limit that list to entries with an image? Or is that not appropriate in this case?

 Signature 
Profile
MSG
 
 
Posted: 27 November 2007 06:08 PM   [ Ignore ]   [ # 76 ]  
Lab Assistant
RankRank
Total Posts:  110
Joined  04-23-2007

I’m not familiar with the search parameter, but I need to show all entries (in my case, individuals on a directory page), regardless of whether there’s a member image or not.  I have a condition set so that if there’s no image, it’ll just show a default silhouette image.

Profile
 
 
Posted: 27 November 2007 06:46 PM   [ Ignore ]   [ # 77 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

eclectiv
are you uploading images with no file extension? e.g. no .jpg

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 27 November 2007 07:19 PM   [ Ignore ]   [ # 78 ]  
Lab Assistant
RankRank
Total Posts:  110
Joined  04-23-2007

All my images have file extensions.  When all the entries have a photo, there’s no error notice.  I actually noticed something more strange.  It’s not a Firefox issue.  Rather, when an admin is signed in, the error shows on all browsers.  But when a guest or a regular member visits the page, the error doesn’t show.  Weird!

Profile
 
 
Posted: 27 November 2007 09:00 PM   [ Ignore ]   [ # 79 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

Yeah this is a server side thing so browser flavors and versions would not matter. EE only shows errors to admins by default. 

I have updated the plug-in so it will catch that error you are getting.

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 28 November 2007 04:00 AM   [ Ignore ]   [ # 80 ]  
Lab Assistant
RankRank
Total Posts:  110
Joined  04-23-2007

Presto!  Thanks, Lumis!  You’re awesome.

Profile
 
 
Posted: 29 November 2007 01:01 PM   [ Ignore ]   [ # 81 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  216
Joined  11-04-2002

Looove this plugin, but also wondering on any updates on the zoom-crop feature? Would love to see that in this awesome plugin!!

 Signature 

stillburning.com | fever of fate

Profile
 
 
Posted: 29 November 2007 01:20 PM   [ Ignore ]   [ # 82 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

Sasha
one thing i wanted to make sure i did is use EE’s built in image lib. but i am struggling a bit to do a resize and then crop without having to write the image to disk twice.

still working on it though

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 01 December 2007 08:41 AM   [ Ignore ]   [ # 83 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  216
Joined  11-04-2002

Okay, thanks for the update!! smile

 Signature 

stillburning.com | fever of fate

Profile
 
 
Posted: 02 December 2007 10:10 AM   [ Ignore ]   [ # 84 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  216
Joined  11-04-2002

I had an additional question regarding the src paramter:

src= (required) the path from “webroot” to the image or the URL to the image
/images/news/moped.jpg or http://www.lumis.com/images/news/moped.jpg

Is there a significant different in performance between using the webroot or the full URL? In phpthumb’s readme files there is a warning against using the full URL, stating it will be a lot slower. Is that the case here too? Or does it not make much of a difference?

 Signature 

stillburning.com | fever of fate

Profile
 
 
Posted: 02 December 2007 10:43 AM   [ Ignore ]   [ # 85 ]  
Lab Technician
RankRankRankRank
Total Posts:  1005
Joined  11-01-2002

I believe the full URL is converted to the webroot.

Profile
 
 
Posted: 02 December 2007 10:58 AM   [ Ignore ]   [ # 86 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  216
Joined  11-04-2002

Ah ok, so there’s no difference at all? Or does the conversion make it slower too?

 Signature 

stillburning.com | fever of fate

Profile
 
 
Posted: 02 December 2007 11:48 AM   [ Ignore ]   [ # 87 ]  
Lab Technician
RankRankRankRank
Total Posts:  1005
Joined  11-01-2002

Keep in mind that the images are cached, so that even if there is a performance hit, after the first time, it doesn’t matter.

Profile
 
 
Posted: 02 December 2007 11:57 AM   [ Ignore ]   [ # 88 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  216
Joined  11-04-2002

Okay excellent, thank you for your quick answers!! Much appreciated! smile

 Signature 

stillburning.com | fever of fate

Profile
 
 
Posted: 02 December 2007 01:09 PM   [ Ignore ]   [ # 89 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

Sasha,
no there is no performance hit for using the full URL the full url is there just for flexibility on input.
i just simply lop off the domain it does not do a http fetch

and Erin is correct once the work is done it never needs to be done again unless the source image is updated
but the initial processing is fast anyway.

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 03 December 2007 12:48 AM   [ Ignore ]   [ # 90 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  184
Joined  10-24-2006

OK, so after spending some time away from this, I’m ready to give the symbolic link thing a shot again.  I just tried to create a symbolic link from Appletell’s document root to the appletell images folder which lies on dabbledoo.com (as lumis and others have suggested).  It’s still not working.  I’m not all too familiar with symbolic links… does it matter what I call the link?  Can I just call it “appletell_images”?

Thoughts?

Thanks again!

 Signature 

Dabbledoo Media

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

Profile
 
 
   
5 of 17
5
 
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: 42
Total Topics: 82116 Total Anonymous Users: 20
Total Replies: 441312 Total Guests: 187
Total Posts: 523428    
Members ( View Memberlist )