er… ok, having done another test from scratch it was down to user error.
When I set up the custom field I selected Xhtml…
Published a test entry then realised the custom field was xhtlm.
Edited the custom field back to none.
BUT… DIDNT select update all entries (it was late honest).
Could we have a feature request for idiots like me so that we get a big pop up javascript ALERT aksing are you sure you DONT want to update all entries (joking)…
iMuppet
Lumis, thanks tons for this extension. 😊 Is there any chance we could get a new parameter in the plugin to control whether the image gets upscaled if the dimension specified is larger than that dimension on the original? It would basically emulate a kind of max-width setting. Something like this (assuming original image dimensions of 200 wide by 100 high):
{exp:imgsizer:size src="/images/profile-photos/200x100/johndoe.jpg" width="150" upscale="no"} - would resize image to 150x75
{exp:imgsizer:size src="/images/profile-photos/200x100/johndoe.jpg" height="150" upscale="no"} - would not resize image, but would display original image and dimensions
{exp:imgsizer:size src="/images/profile-photos/200x100/johndoe.jpg" auto="150" upscale="no"} - would resize image to 150x75
Any chance of this? 😊
I’ve recently switched over to Phpthumb due to some problems I was experiencing with Image Sizer that have gone unfixed for a long period. It’s a free plugin - and I love it to bits, but I had some weird problems resizing images over 500 pixels in width and some issues with using Image Sizer inside variable tag pairs as well as with resizing avatars.
With all that said, if Lumis would ever consider updating this plugin - I’d be quite interested in pledging a donation for it as I’ve always suggested. It’s so close to being production ready in almost all circumstances.
Keep it up man! Thanks again!
I’ve recently switched over to Phpthumb due to some problems I was experiencing with Image Sizer that have gone unfixed for a long period.
Try Smart Image Resizer. Same idea as phpThumb but I’m finding it more lightweight and a bit faster.
Note to those who have used the lumis.com Image Sizer but not phpThumb:
Smart Image Resizer and phpThumb are PHP scripts; they have nothing to do with EE in particular. With either, you put their server path in front of an image’s src attribute (or an anchor’s href attribute) and the script takes it from there. Their docs explain it.
While I’m here: does anybody know how to get the Image Sizer plugin syntax to work as the href attribute of an anchor? I’d like to compare its performance to this Smart Image Resizer script. I can get Image Sizer to work fine as an image src, but not as an href.
While I’m here: does anybody know how to get the Image Sizer plugin syntax to work as the href attribute of an anchor? I’d like to compare its performance to this Smart Image Resizer script. I can get Image Sizer to work fine as an image src, but not as an href.
Have you tried using it as a Tag Pair instead of a standalone tag? The output is pretty much completely customizable then.
While I’m here: does anybody know how to get the Image Sizer plugin syntax to work as the href attribute of an anchor? I’d like to compare its performance to this Smart Image Resizer script. I can get Image Sizer to work fine as an image src, but not as an href.Have you tried using it as a Tag Pair instead of a standalone tag? The output is pretty much completely customizable then.
My problem is the fact that the href attribute of an HTML anchor tag needs to be inside quotes. I can’t make the ImgSizer tag work that way. I’ve tried surrounding it with the normal straight double quotes, with the html entity for a straight double quote, and with single quotes, but the plugin simply fails to function.
When you’re using the ImgSizer tag in place of an HTML img tag, it doesn’t need to be in quotes and it works fine.
Anyone?
Has anyone managed to get this working with Extract_url or something like it?
I’ve tried Victors suggestions to no avail.
This is an awesome plugin and it’d be great if my users could just upload an image to a custom field, and I could programatically strip out the html of the img tag ready for use with the resizer.
Any help much appreciated!
Hi dallo,
Why don’t you just use the File extension to upload the image and then you can plug the output of that straight into the Image Sizer plugin.
This is a really really easy way to upload files and is a lot lot quicker than the built-in ExpressionEngine upload form in my mind.
You can definitely use the Extract URL plugin with the Image Sizer plugin though as I did it some time back but don’t really do things that way any more as the File extension way is just so much easier.
Hope that helps a bit.
Best wishes,
Mark
I also need a hand with this plugin. I’m having issues getting it work at all.
To cover a few things: 1) Cache folder is there with 77 permissions. 2) Plugin is installed fine EE says and it has executable rights. 3) GD is installed on the server as far as I can tell.
pitch:~# apt-get install php5-gd
Reading package lists... Done
Building dependency tree... Done
php5-gd is already the newest version.
4) Server is standard Debian install Apache2 PHP5 etc. 5) Mark Bowman had a look and couldn’t see anything wrong with it.
Anyway the problem. When I use it nothing happens.
{exp:weblog:entries weblog="news" limit="2"}
{exp:imgsizer:size src="{news_image}" width="239" height="87"}
{/exp:weblog:entries}
This returns nothing. Nada. White space in the code where the image should be and in normal view just nothing, no errors either.
However if I use:
{news_image}
Wow, combining this with the File plugin that Mark suggested has just turned the image uploading for a site that will eventually contain thousands of images a piece of cake.
Talk about knocking one out of the park!!
One more question tho…
Any way to get the crop function to accept a location variable, so that you can choose how it crops the image? It’d be great if I could pass in something like:
{exp:imgsizer:size src="{main_photo}" width="170" height="90" crop_location="top"}
I’m working on a fashion site, and the standard ‘crop from center’ is creating a bunch of thumbnails that show the models mid region - it looks a bit, ahem, strange :0)
Cheers
D
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.