3 of 15
3
plugin: Image Sizer
Posted: 31 October 2007 11:47 PM   [ Ignore ]   [ # 37 ]  
Grad Student
Avatar
Rank
Total Posts:  95
Joined  03-10-2005

template caching and tag caching work fine. The plug-in will obey boath, actually that is EE it just does not process the plug-in again if eather are cached untill the cache expires.

justurl still does the same thing but it just returns the url/path to the image rather than all the other img code

the caching works like this:
is there a cached version for the size? (simple php file exists check)
yes
is cached version newer than original (simple file time comaprison)
yes
return url

so if eather of thoes above were no then it would make a resized cached version of the image
so really the php overhead is very very low unless resizing is needed but the resizing is really lightweight as well

also i have not looked at phpThumb but allot of applications like this actually return the cached file as a data-stream setting its own header as a image type and returning itself as the image. meaning the aplication would have to stream the entire image through itself each time it is loaded, rather than just returning itself as a file path.

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 01 November 2007 12:04 AM   [ Ignore ]   [ # 38 ]  
Summer Student
Avatar
Total Posts:  14
Joined  05-24-2007
lumis - 31 October 2007 11:47 PM

template caching and tag caching work fine. The plug-in will obey boath, actually that is EE it just does not process the plug-in again if eather are cached untill the cache expires.

justurl still does the same thing but it just returns the url/path to the image rather than all the other img code

the caching works like this:
is there a cached version for the size? (simple php file exists check)
yes
is cached version newer than original (simple file time comaprison)
yes
return url

so if eather of thoes above were no then it would make a resized cached version of the image
so really the php overhead is very very low unless resizing is needed but the resizing is really lightweight as well

also i have not looked at phpThumb but allot of applications like this actually return the cached file as a data-stream setting its own header as a image type and returning itself as the image rather than just returning itself as a file path.

Ok thank you, now it’s more clear how EE and the plugin works.

I’ll try the new plugin version tomorrow.

Good night!

Profile
 
 
Posted: 01 November 2007 12:37 AM   [ Ignore ]   [ # 39 ]  
Research Assistant
RankRankRank
Total Posts:  947
Joined  11-01-2002
mdesign - 26 October 2007 11:47 AM

Has this plugin been updated so that height is the determining factor in the resize? I have a layout where I really need to restrict by height - but everywhere else on the site I need to restrict by width, which this apparently does. I’d hate to have to install this for everything but that one page, where I’d have to install phpThumb just to restrict by height.

I second this, with an addition. Sometimes my photos are landscape, and sometimes portrait. I would like to create square thumbnails, either through resizing or cropping so that I can layout my thumbnails easier.

Can this plugin do that?

Profile
 
 
Posted: 01 November 2007 01:03 AM   [ Ignore ]   [ # 40 ]  
Grad Student
Avatar
Rank
Total Posts:  95
Joined  03-10-2005

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”

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 01 November 2007 10:31 AM   [ Ignore ]   [ # 41 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  10-24-2006

FYI - I’ve tried out v1.5 on a test site, and I can confirm that it is a hell of a lot faster than PhpThumb.  I’m looking forward to rolling this out on our sites in production!  lumis, you’re a life (or server) saver!

 Signature 

Dabbledoo Media

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

Profile
 
 
Posted: 01 November 2007 11:49 AM   [ Ignore ]   [ # 42 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5958
Joined  08-04-2002

Lumis...I hope as you add features you can keep it lite. :-)

Edit-Add: Just so you know, your link to get the plugin isn’t taking one to the correct page.

Profile
 
 
Posted: 01 November 2007 01:15 PM   [ Ignore ]   [ # 43 ]  
Grad Student
Avatar
Rank
Total Posts:  95
Joined  03-10-2005

PXLated i think at this point the only feature i will be adding will be the square sizing which should not add any processing time.

also i fixed the link thanks for pointing that out

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 01 November 2007 03:22 PM   [ Ignore ]   [ # 44 ]  
Research Assistant
RankRankRank
Total Posts:  947
Joined  11-01-2002

Here’s a scenario for you:
* images are the same size, but some are landscape (800x533) and some are portrait (533x800)

I would like to be able to resize them to 150x100 or 100x150, depending on their orientation.

Is that possible?

Profile
 
 
Posted: 01 November 2007 03:28 PM   [ Ignore ]   [ # 45 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5958
Joined  08-04-2002

Daizell...What I do is have a “shape” field for my images blog, then use conditionals to determine which variation of Image Sizer or phpThumb to use. I would imagine you could use some PHP to get the dimensions and determine what to do also.

Profile
 
 
Posted: 01 November 2007 03:31 PM   [ Ignore ]   [ # 46 ]  
Research Assistant
RankRankRank
Total Posts:  947
Joined  11-01-2002

Yikes...that sounds like a lot of work. Maybe I will just either use phpThumb or take a loot at the Image Sizer code and make a suggestion.

What I want is a ‘max-size’ parameter that will be applied to the longest side. Shouldn’t be that hard to do.

Profile
 
 
Posted: 01 November 2007 03:41 PM   [ Ignore ]   [ # 47 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5958
Joined  08-04-2002

Yikes...that sounds like a lot of work

Actually it’s not. I use that method on most sites I have images on. In addition to scaling it allows to sort by shape...all horizonta, all vertical, etc. If I have mixed B&W;and color I usually throw in a field for that also. An example: Marauders Sorting links at top.

Profile
 
 
Posted: 01 November 2007 03:45 PM   [ Ignore ]   [ # 48 ]  
Research Assistant
RankRankRank
Total Posts:  947
Joined  11-01-2002

I see. Ya, I just figured out I could test the height/width data myself and call image sizer myself. I have to decide whether or not to use image sizer or phpThumb...I am leaning toward image sizer right now as I like everything to be all integrated and I don’t have a need (at the moment) for all the capabilities of phpThumb.

Thanks

Profile
 
 
Posted: 01 November 2007 03:55 PM   [ Ignore ]   [ # 49 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  10-24-2006

Hi Everyone - I just installed the plugin on our production site, and it’s not working.  Here’s a little more about our structure…

We’ve got about 10 file upload folders in our File Upload Prefs section and are using 1 folder per blog (a multiple blog setup).  I’m trying to use this on just one of our sites right now and the imgsizer tag is returning nothing.  I already put the cache folder in the File upload folder I’m using, and set the permissions to 777.  Here is exactly what I put in the template that is returning nothing:

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

{exp
:imgsizer:size src="{thumbs}" height="100"}

{
/exp:weblog:entries}

Any thoughts?

 Signature 

Dabbledoo Media

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

Profile
 
 
Posted: 01 November 2007 04:01 PM   [ Ignore ]   [ # 50 ]  
Research Assistant
RankRankRank
Total Posts:  947
Joined  11-01-2002
Dabbledoo - 01 November 2007 03:55 PM

Any thoughts?

What is the ‘thumbs’ tag?

Profile
 
 
Posted: 01 November 2007 04:09 PM   [ Ignore ]   [ # 51 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  10-24-2006

Sorry, {thumbs} is my custom field that contains the image URL.  Is it possible there is another plugin / module / extension that is conflicting with imgsizer?

 Signature 

Dabbledoo Media

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

Profile
 
 
Posted: 01 November 2007 04:17 PM   [ Ignore ]   [ # 52 ]  
Research Assistant
RankRankRank
Total Posts:  947
Joined  11-01-2002

So if you View Source, you see nothing?

Profile
 
 
Posted: 01 November 2007 04:20 PM   [ Ignore ]   [ # 53 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  10-24-2006

That is correct.

 Signature 

Dabbledoo Media

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

Profile
 
 
Posted: 01 November 2007 04:28 PM   [ Ignore ]   [ # 54 ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  04-30-2007

Can this plugin resize the image based on a percentage value of the original image size. So instead of using pixels, you could use percents and it would be that percent of the original image size. This can be done with phpThumb but this plugin seems like a great alternative I’d like to try.

 Signature 

Casey Reid | Clear Fire Studios

Profile
 
 
   
3 of 15
3
 
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 10:33 AM
Total Registered Members: 61093 Total Logged-in Users: 29
Total Topics: 73930 Total Anonymous Users: 20
Total Replies: 398690 Total Guests: 494
Total Posts: 472620    
Members ( View Memberlist )