I found what is wrong, bus still don’t know why.
For now it looks like that work for me: comment line 449 in pi.imgsizer.php
//$img['browser_out_path'] = $FNS->remove_double_slashes("/".str_replace($img['base_path'], '', $img['root_out_name']));
and put just this one there:
$img['browser_out_path'] = $img['root_out_name'];
Now the path is correct and the small size pics shows correctly.
Bug?
I’ve read through all 27 pages, and although I came across two or three others asking the same question, I never located an answer - might have just missed it…
Is there a way to test the width and height of the original uploaded image so that it’s proportions can be determined, and then perform different image sizer operations accordingly?
In many cases you need to handle the sizing differently depending on if the original image is portrait or landscape oriented.
P.S. One of the best EE plug-ins available, truly a must have. Thanks again.
Hello, I am having a problem with Image Sizer. I installed my ee into a subdir like this www.domain.com/v2/, the original images are at www.domain.com/v2/images/gallery/ and I want the sized images to be at www.domain.com/v2/images/gallery/images/sized/ but Image Sizer wants to use www.domain.com/images/sized/v2/images/gallery.
I tried using the parameters base_path or base_cache, but the tag is not rendered at all in the template when I use either of them.
Odd this question never seems to get answered 😊 , or if it has that I can’t seem to find it. Seems pretty fundamental to me, so it’s either so obvious that it’s not worth answering, or it’s not as common a need as I’d perceive it to be.
Basically, I just want to know what the width and height of the originally uploaded image are, and then execute different image sizer operations based on that knowledge.
Using the example of an image being displayed within a lightbox, applying “height=400” works great for portrait and square images, it keeps the images viewable for most users running at a resolution of 1024 - it also works great for a large number of landscape images, …until it doesn’t.
Landscape images over a certain width become WAY to broad when sized vertically to 400. So I need to test for images of a certain aspect ratio, and give those image sizer operations a width instead of height to work with. Make sense?
Godspeed.
I’ve read through all 27 pages, and although I came across two or three others asking the same question, I never located an answer - might have just missed it… Is there a way to test the width and height of the *original* uploaded image so that it’s proportions can be determined, and then perform different image sizer operations accordingly? In many cases you need to handle the sizing differently depending on if the original image is portrait or landscape oriented. P.S. One of the best EE plug-ins available, truly a must have. Thanks again.
Odd this question never seems to get answered 😊 , or if it has that I can’t seem to find it. Seems pretty fundamental to me, so it’s either so obvious that it’s not worth answering, or it’s not as common a need as I’d perceive it to be. Basically, I just want to know what the width and height of the originally uploaded image are, and then execute different image sizer operations based on that knowledge.
Goodcompany … honestly, I’m not totally sure if I really understand your question, it seems totally unrelated to Image Sizer for me - so apologies if this is not what you’re looking for. But if your question is: “How can I get the height and width of an uploaded image to use it in conditionals?”, then either this add-on might help (I never used it myself) or you could use a few lines of PHP utilizing the getimagesize function.
HTH -Markus
Im completely shtuck!
Iv installed the plugin, as iv done plenty of times before, but its not creating the cached image!!
I dont know WHATS going on… but this is the debugging im getting.
it looks like the url path is being sent html encoded parameters…
(0.090811) Parsing Tags in Template
(0.090835) Tag: {exp:imgsizer:size src="/images/home/pic1.jpg" width="230"}
(0.090922) No Closing Tag
(0.090974) Tag: {exp:imgsizer:size src="" width="230"}
(0.091045) No Closing Tag
(0.091091) Tag: {exp:imgsizer:size src="/images/home/pic2.jpg" width="230"}
(0.091170) No Closing Tag
(0.091209) Processing Tags
(0.091236) Plugin Tag: Imgsizer/size
(0.091256) Plugin Tag: Imgsizer/size
(0.091275) Plugin Tag: Imgsizer/size
(0.091292) Including Files for Tag and Modules
(0.093475) Beginning Final Tag Data Processing
(0.093495) Calling Class/Method: Imgsizer/size
(0.093570) -> Class Called: Imgsizer
(0.093591) -> Method Called: size
(0.119659) -> Data Returned
(0.119703) Calling Class/Method: Imgsizer/size
(0.119792) -> Class Called: Imgsizer
(0.119814) -> Method Called: size
(0.119872) Returning No Results Content
(0.119888) -> Data Returned
(0.119916) Calling Class/Method: Imgsizer/size
(0.119975) -> Class Called: Imgsizer
(0.119993) -> Method Called: size
(0.152242) -> Data Returned
(0.152296) - End Tag Processing -
even tho, my tag says
{exp:imgsizer:size src="/images/home/pic1.jpg" width="230"}
Is there a simple step-by-step, or complete example somewhere? Or some kind of admin config I have to set up?
1st example from the doc (I’ve changed the file name to one on my server):
{exp:imgsizer:size src="/images/news/moped.jpg" width="200" alt="My Title" id="img_5334" class="entry_img"}
Results in nothing output to HTML. Do I have to set permissions for some directory?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.