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

Image Sizer Returning Blank Results

Development and Programming

Andy J.'s avatar
Andy J.
58 posts
16 years ago
Andy J.'s avatar Andy J.

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!

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Andy, we don’t provide direct support for third party addons such as ImgSizer and File. I’m going to move this to the Plugins forum.

       
Andy J.'s avatar
Andy J.
58 posts
16 years ago
Andy J.'s avatar Andy J.

Thanks Sue.

       
Andy J.'s avatar
Andy J.
58 posts
16 years ago
Andy J.'s avatar Andy J.

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?

       
Andy J.'s avatar
Andy J.
58 posts
16 years ago
Andy J.'s avatar Andy J.

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>
</pre>

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” ?

       
brendanh's avatar
brendanh
32 posts
16 years ago
brendanh's avatar brendanh

I’m having this exact same issue. It was working then I transferred it do a different hosting package.

       
Andy J.'s avatar
Andy J.
58 posts
16 years ago
Andy J.'s avatar Andy J.

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!

       

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.