Maybe being able to specify by corner, and when not specified, it will default to middle?Hmm.. Maybe i will look into it later, i personally don’t see the use at this moment, but if i have the time.or{exp:imgsizer:size image="{image}" width="322" height="197" alt="{caption}" corner="top-left"}
{exp:imgsizer:size image="{image}" width="322" height="197" alt="{caption}" corner="bottom-right"}
Just like david I’m looking for a option to get more control over the resizing process.
I want to make a webdesign portfolio with an overview and a detail page. The image on the overview page will be 600px x 300px (for example). while the image on the detail page will be 600px x 600px. With the current version of imgsizer the image on the overview page will look like it was cropped without care. What i want in this situation is an option to tell the imgsizer “stick to the top of the image”. The result will be a top view of a screendump. This will look better than a middle part of a screendump.
I hope there is time to make this powerful add-on more powerful.
An example what will be a ultimate solution.
Corner control
{exp:imgsizer:size image="{image}" width="322" height="197" alt="{caption}" left="0" bottom="20"}
or
{exp:imgsizer:size image="{image}" width="322" height="197" alt="{caption}" right="0" top="0"}
or
{exp:imgsizer:size image="{image}" width="322" height="197" alt="{caption}" left="10" top="10"}
Side control
{exp:imgsizer:size image="{image}" width="322" height="197" alt="{caption}" left="0"}
or
{exp:imgsizer:size image="{image}" width="322" height="197" alt="{caption}" bottom="10"}
Completely agree with you on that. I have experienced some less than ideal crops whilst using this plugin, but I feel the same would happen with other plugins that do similar things. It would be great if there was other ways of controlling how an image gets cropped, but when there is a level of automation involved, combined with the potential of source images being of all diffeent shapes, sizes and zoom levels etc, I think we can’t expect a perfect solution.
I’d think that the {image_file} variable contains “/images/sized/images/sized/remote/images-mysite-org-global-video-who_is_test_file-200x140.jpg”. It probably doesn’t have anything to do with the imgsizer plugin. To check, place {image_file} on it’s own not in the imgsizer plugin so that it echoes on the page. That way you can see what values are being passed to imagesizer. If the {image_file} variable is “/images/sized/remote/images-mysite-org-global-video-who_is_test_file-200x140.jpg” then there’s your problem. Imgsizer automatically adds /images/sized to the base_path. In this case /remote/.
I’m using using the nGen File Field extension for the {image_file}. The varible it outputs is…
/global/who_is_test_file.jpg
I then use this code for image sizer…
{exp:imgsizer:size src="http://images.westernshugdensociety.org{image_file}" remote="on" width="190" alt="{image_des}" title="{title}"}
and end up with this file path…
/images/sized/images/sized/remote/images-mysite-org-global-video-who_is_test_file-200x140.jpg
I’m getting an error when I run the plugin:
Notice: Undefined index: url_src in /nfs/c04/h01/mnt/59063/domains/skateparksystems.com/html/system/plugins/pi.imgsizer.php on line 130
The code I am using is:
{exp:imgsizer:size image=
The strange thing is, it was working fine, then I refreshed the page and I get the error at the top of the page. Actually I get it 10 times repeated.
Ive read through this entire thread and seen a few other post this but no answer that i can tell.
Is there anyway to get the image sizer to output the full url instead of the relative path. For example…
fyi - {image} outputs the full url -
So This:
{exp:imgsizer:size width="185" height="110" src="{image}"}
currently outputs this:
/images/uploads/cache/image-185x110.jpg
and I would rather it be:
http://www.mysite.com/images/uploads/cache/image-185x110.jpg
This is causing problems when I use multiple site manager, because the cache folder is located on another server. This would also be helpful for my rss feed which also uses image resizer. When i go to validate it, it recommends to use the full path.
Is there a way to set the parameters so that it will scale within a specified width AND a specified height that is DIFFERENT from one another? So for example if I wanted all of my images to stay within the boundaries of being 800px wide and 400px tall. I know that if I just put it in like so:
{exp:imgsizer:size width="800" height="400" src="{image}"}
It will crop and scale the image to exactly 800 x 400.
I know I can use “auto”, but that only allows you to specify one maximum dimension for width and height.
I want it to scale the image to be within the maximum dimensions for width AND height so that nothing gets cropped. Is there an additional hidden parameter perhaps?
Is there a way to set the parameters so that it will scale within a specified width AND a specified height that is DIFFERENT from one another? So for example if I wanted all of my images to stay within the boundaries of being 800px wide and 400px tall. I know that if I just put it in like so:It will crop and scale the image to exactly 800 x 400. I know I can use “auto”, but that only allows you to specify one maximum dimension for width and height. I want it to scale the image to be within the maximum dimensions for width AND height so that nothing gets cropped. Is there an additional hidden parameter perhaps?{exp:imgsizer:size width="800" height="400" src="{image}"}
Please take a look at my earlier posts, i’ve updated the module to allow such functionality.
Hello again…
just wondering if anyone could help me out with my posts above, I really need to get this resolved because we have several sites built and ready to go using MSM but none of them will have images unless I can point to them using the full url path.
Is there something I could modify in the plug-in code to stop it from stripping the full url?
thanks in advance!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.