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

plugin: Image Sizer

Development and Programming

aircrash's avatar
aircrash
293 posts
15 years ago
aircrash's avatar aircrash

i was over thinking this. just changed my code to

{if count == 1}{exp:imgsizer:size image="{art-image}" width="220" height="220" alt="{title}"}
{if:else}{exp:imgsizer:size image="{art-image}" width="100" height="100" alt="{title}"}{/if}

and it works fine.

       
Perfect Circle Development's avatar
Perfect Circle Development
17 posts
15 years ago
Perfect Circle Development's avatar Perfect Circle Development

Hello all,

I am having a few issues with my img.sizer plugin.

I have a couple of images that have been uploaded, when I view them via their full url they are seen nice and clear.

I have a stripped filename in a custom field. Just example.jpg. This file s located in images/uploads.

{exp:imgsizer:size src="/images/uploads/{gallery-image-source}" width="auto" alt="{title}" id="{entry_id}" class="thumb"}

My problem is however, when I pass my EE custom field to the imgsizer source the image url is not being placed in the outputted (EMPTY) when viewing the source code.

I am getting a couple of PHP errors, which I presume are throwing the plugin out…

Any thoughts would be appreciated.

Warning: Invalid argument supplied for foreach() in /home/blah/blah/system/plugins/pi.imgsizer.php on line 237 Notice: Undefined index: out_width in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Notice: Undefined index: out_height in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Warning: Invalid argument supplied for foreach() in /home/blah/blah/system/plugins/pi.imgsizer.php on line 237 Notice: Undefined index: out_width in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Notice: Undefined index: out_height in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Warning: Invalid argument supplied for foreach() in /home/blah/blah/system/plugins/pi.imgsizer.php on line 237 Notice: Undefined index: out_width in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Notice: Undefined index: out_height in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314
       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
15 years ago
Deron Sizemore's avatar Deron Sizemore

What do you have in your {gallery-image-source} field?

Here’s how I typically use it:

{exp:imgsizer:size src="{gallery_image}" width="284" height="125" alt="{title}"}

Inside of my {gallery_image} field, I insert it with “URL Only” so in the custom field it shows something like

https://ellislab.com/asset/images/ent-partner-logo/image.png
       
Perfect Circle Development's avatar
Perfect Circle Development
17 posts
15 years ago
Perfect Circle Development's avatar Perfect Circle Development

just something such as example.jpg

I shall try it with the {filedir} location and see if that helps.

       
Perfect Circle Development's avatar
Perfect Circle Development
17 posts
15 years ago
Perfect Circle Development's avatar Perfect Circle Development

Same problems

Warning: Invalid argument supplied for foreach() in /system/plugins/pi.imgsizer.php on line 237 Notice: Undefined index: out_width in /system/plugins/pi.imgsizer.php on line 314 Notice: Undefined index: out_height in /system/plugins/pi.imgsizer.php on line 314

and image not showing, just alt text being displayed.

       
Perfect Circle Development's avatar
Perfect Circle Development
17 posts
15 years ago
Perfect Circle Development's avatar Perfect Circle Development

thats including https://ellislab.com/asset/images/team-photo/example.jpg in the custom field {gallery-image-source}

       
Perfect Circle Development's avatar
Perfect Circle Development
17 posts
15 years ago
Perfect Circle Development's avatar Perfect Circle Development

thats including

https://ellislab.com/asset/images/team-photo/example.jpg

in the custom field {gallery-image-source}

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
15 years ago
Deron Sizemore's avatar Deron Sizemore

Ok, if you’re using

https://ellislab.com/asset/images/team-photo/example.jpg

in your custom field, you’ll have to change the imgsizer code and remove the “/images/uploads/” part.

With the “filedir_1” part in the custom field that will tell the site where to pull the image from, so when you view your source code, filedir_1 actually turns into something like http://www.domain.com/images/uploads. So if you use src=”/images/uploads/{custom-field}” what will actually be output is /images/uploads/http://www.domain.com/images/uploads/example.jpg which as you can see would give you some errors.

       
Perfect Circle Development's avatar
Perfect Circle Development
17 posts
15 years ago
Perfect Circle Development's avatar Perfect Circle Development

I am still getting errors.

Have tried using example.jpg as the {gallery-image-source}

{exp:imgsizer:size src="/images/uploads/{gallery-image-source}" width="auto" alt="{title}" id="{entry_id}" class="thumb"}

Have tried using { filedir_1 }example.jpg as the {gallery-image-source}

{exp:imgsizer:size src="{gallery-image-source}" width="auto" alt="{title}" id="{entry_id}" class="thumb"}

Have tried using example.jpg as the {gallery-image-source}

{exp:imgsizer:size src="https://ellislab.com/asset/images/team-photo/{gallery-image-source}" width="auto" alt="{title}" id="{entry_id}" class="thumb"}

All of which error and show nothing

Could it be an error in the plugin???

       
Perfect Circle Development's avatar
Perfect Circle Development
17 posts
15 years ago
Perfect Circle Development's avatar Perfect Circle Development

I have reverted to an older version of img:sizer and so far it appears to be working some what better. Atleast a thumbnail is actually showing now. Many Thanks for the help. I will be back in time, as I am determined to get the newer version working too.

Cheers

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
15 years ago
Deron Sizemore's avatar Deron Sizemore

I’ve used it quite a bit and never experienced any issues with the plugin. It’s possible though. May just try to reinstall it. It’s also possible that you have an extension interfering with it. Could try disabling extensions and see if it works then.

       
GDmac - expocom's avatar
GDmac - expocom
350 posts
15 years ago
GDmac - expocom's avatar GDmac - expocom

Looks like a caching problem.

       
Ian Ebden's avatar
Ian Ebden
312 posts
15 years ago
Ian Ebden's avatar Ian Ebden

Help! My client’s site has been working fine for several weeks, but suddenly no images coded with the imgsizer plugin are displaying. Nothing’s changed as far as configs – just stopped working overnight! Any ideas? Urgent.

In debug mode I get: (0.039470) imgsizer.Error: /home/user/domains/mydomain.co.uk/public_html/images/sized/images/uploads/ is not writable please chmod 777

Already checked this, and it is writeable, and obviously been working fine all this time.

       
Ian Ebden's avatar
Ian Ebden
312 posts
15 years ago
Ian Ebden's avatar Ian Ebden

Ok, seems my host changed to suPHP (without telling me) so what’s happened is that certain things failed because permissions were incorrect. They’ve just done some tweaking and everything is back on now. Grrr…

       
cine_code's avatar
cine_code
14 posts
15 years ago
cine_code's avatar cine_code

Hi, after installing image sizer 2.5.6 on expression engine 1.6.8, the plugin manager wont load, I keep getting just a blank page. The plugin wont work either.

Is this a know problem?

Thanks Aldo

       
First 38 39 40 41 42 Last

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.