We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

plugin: Image Sizer

Development and Programming

PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

Wow Lumis, you’ve been busy!!! Will be trying it out as soon as I get a break.

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

I would imagine it would have the same issue as phpThumb if it has to check for a cache file on every page load. It would probably have to in case you’ve changed a parameter.

       
lumis's avatar
lumis
119 posts
17 years ago
lumis's avatar lumis

well it would depend on what your idea of busy is? but i use it here with no problems http://wkrg.com/ every article we do has multipul different image sizes. and i cant give out exact numbers but it handels well over a million page views a month. and at peek times over 6000 users on the site at one time.

I have also built Gallery sections using this plug-in you can view here http://wkrg.com/weather_gallery/

I have a companion plug-in im working on to display images in the edit list and resizing / cropping tab in the publish page

ohh and the check cache feature is a simple if cache file exists then dont do any processing and just return the url

       
Gonzalingui's avatar
Gonzalingui
13 posts
17 years ago
Gonzalingui's avatar Gonzalingui
I would imagine it would have the same issue as phpThumb if it has to check for a cache file on every page load. It would probably have to in case you’ve changed a parameter.

Does that really have performance issues?

I’ll try the new version in a website, It has had about 18000 template hits in the last two weeks. And I have the template cache activated.

Will the plugin slow down the website? What if I just use the justurl parameter (obviously after the image has been resized and cached)? Does EE have any method to save the plugin’s output in the cache? Or any way to notice the plugin in case EE is using a cached version of a template?

Sorry for my english 😊

lumis, thank you again for the great support you are givin to this plugin!

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

With phpThumb it’s been reported by a couple as slowing down their site but only where there are tons of images on each page so it’s making the cache call many times over. And the speed comparison is in relation to using standard static thumbs rather than dynamic. I haven’t heard any problems for normal sites with a small number of images per page.

       
lumis's avatar
lumis
119 posts
17 years ago
lumis's avatar lumis

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.

       
Gonzalingui's avatar
Gonzalingui
13 posts
17 years ago
Gonzalingui's avatar Gonzalingui
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!

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell
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?

       
lumis's avatar
lumis
119 posts
17 years ago
lumis's avatar lumis

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”

       
Dabbledoo's avatar
Dabbledoo
172 posts
17 years ago
Dabbledoo's avatar Dabbledoo

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!

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

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.

       
lumis's avatar
lumis
119 posts
17 years ago
lumis's avatar lumis

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

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

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?

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

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.

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

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.

       
1 2 3 4 5 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.