I’ve used Image Sizer plenty of times with fine results. But on this site I can’t figure out why it’s returning blank on the web page. In other words, where the resized thumbnail should be displaying on the page, nothing is there.
Preprocessed Code:
{exp:weblog:entries weblog="gallery" sort="asc"}
<div class="{switch="bottom_photo_outer1|bottom_photo_outer2"}">
<div class="bottom_photo_inner">
<a href="http://{photo}" class="highslide">_{exp:imgsizer:size src="{photo}" width="160" height="130" alt="{title}" class="pic"}_</a>
</div>
</div>
{/exp:weblog:entries}
Here’s the processed code:
<div class="bottom_photo_outer1">
<div class="bottom_photo_inner">
<a href="http://keyboardkids.org/kkinew/images/uploads/093.jpg" class="highslide">_ _</a>
</div>
</div>
You can see the blank space left by the Image Sizer code. What gives?
The {photo} field is a Mark Huot File field, which I’ve used with this same set-up on other sites with success.
I checked my cache folder within my Uploads folder and made sure it’s writable. I used the wizard.php to make sure GD is functioning. The only difference I can think of between this site and others that have worked just fine is this one is on a Windows server.
Moved to Plugins by Moderator
Any ideas as to why Image Sizer would be returning blank results? Thanks!
Just to make sure, I temporarily made my cache folder an upload directory and tried uploading a photo straight to the cache folder. The upload worked fine. So I think that at least tells me the permissions are set-up correctly on the cache folder.
Maybe I have something turned off in the Admin area that’s keeping Image Sizer from working?
I added the debug parameter like so:
{exp:imgsizer:size src="{photo}" width="160" height="130" alt="{title}" class="pic" debug="1"}
Here is the processed code:
<a href="http://website.com/site/images/uploads/093.jpg" class="highslide">_ _<pre>_src = /site/images/uploads/093.jpg_img_base = /site/images/uploads_img_basename = 093.jpg_img_extension = jpg_img_filename = 093_img_rootstep = //site/images/uploads_img_rootpath = _img_fromroot = /093.jpg_</pre>
<p>_/093.jpg is not readable_</a>
The full size image (093.jpg) displays fine when the debugging text is clicked on. But the thumbnail obviously doesn’t show, just the debugging text. I guess the question is why is it saying /093.jpg is unreadable? Is there supposed to be a value there for “img_rootpath” ?
I found my answer here:
http://ellislab.com/forums/viewthread/94195/P18/#477336
It took a few tries to get the path right, but I finally “guessed” the right path and all is working well!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.