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

SeeB's avatar
SeeB
5 posts
17 years ago
SeeB's avatar SeeB

perfect ! work like a charm … thank you ….

should we wait to add “Watermark” feature in next versions ?

       
ImpGabe's avatar
ImpGabe
171 posts
17 years ago
ImpGabe's avatar ImpGabe

Lumis, thanks for the reply. I had created the cache folder and set the permissions to 777.

As far as the image path goes, if I just code a plain old <img > with the same absolute path coded in as I did with the plugin the image shows up in the rendered page. Is this an indication that the path should work with the plugin?

       
Jordan Moore's avatar
Jordan Moore
45 posts
17 years ago
Jordan Moore's avatar Jordan Moore

Another fantastic plugin Lumis, using both eeFlickr and Image Resizer! I’ve run into a possible issue however, when an uppercase .JPG (not lowercase .jpg) extension is uploaded, the page fails to load. It loads correctly after removing the Image Resizer tags, so it must be an issue with the plugin, is there a workaround?

Many thanks,

Jordan

       
Jordan Moore's avatar
Jordan Moore
45 posts
17 years ago
Jordan Moore's avatar Jordan Moore

Actually, my issue seems to be with the original image dimesions. I’d like users to be able to upload photos, is there a workaround to this?

       
zwenthe's avatar
zwenthe
7 posts
17 years ago
zwenthe's avatar zwenthe

maybe I am dumb or missing something, but I’m struggling using this with MSM. The plugin works great on my core site which is the same domain that the system folder is in. But the plugin doesn’t work in the sister site. It just returns nothing. The upload works and I can directly access the img.

The cache folder exists and is writable, but the plugin does not create the cached image or does it load it.

Thoughts?

       
Danny T.'s avatar
Danny T.
426 posts
17 years ago
Danny T.'s avatar Danny T.

I’m getting a really strange error.. Can’t seem to fix it. I am using the tag pair to dynamically resize images, and have specified a width of “550”. For some odd reason though, it’s only resizing up to 500 pixels in width unless I specify a height as well.

This works (notice the height parameter) and scales properly:

<

pre>{if content_image != ""}{exp:imgsizer:size src="{content_image}" width="550" height="340" quality="95"} <a href="http://{title_permalink=">_ {sized}_ </a> {/exp:imgsizer:size}{/if}

This does not scale properly and produces an image short of 50 pixels in width (notice the “missing” height parameter):

{if content_image != ""}{exp:imgsizer:size src="{content_image}" width="550" quality="95"}
    <a href="http://{title_permalink=">_    {sized}_    </a>
{/exp:imgsizer:size}{/if}

I’ve tried to remove the “height=”{height}” variable out, but it doesn’t seem to be doing anything different.

UPDATE: It seems that if I do not specify a height parameter, and I want to resize to anything above 500 pixels in width that it does not work. Just a reminder, this does resize to a width above 500 pixels if I specify a height parameter..

Has anybody else experienced a similar issue?

       
sm9's avatar
sm9
352 posts
17 years ago
sm9's avatar sm9

Hi there,

I’m trying to load 8 entries on a page and have thumbnail images (85x85) next to them, but I keep getting the error below with this Image Sizer plugin:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 10096 bytes) in /var/www/vhosts/mywebsite.com/httpdocs/system/core/core.image_lib.php on line 500

One of the jpg images it was stalling on was around 1mb in size (which doesn’t seem that high), though it did have dimensions of around 3600px x 2500px.

Any ideas on how I can get by this? Or do I need to get the php memory limit increased? (though I thought it was already quite high).

Thanks,

Ste

EDIT: I reposted this query on this thread.

       
impdesigns's avatar
impdesigns
115 posts
17 years ago
impdesigns's avatar impdesigns

Hello,

ImpGabe and I have been trying in vain to get the Image Sizer plugin to work. We’re unable to get any output from the thing… we’ve tried relative paths, absolute paths, yes the cache folder is set to 777…

Are there any dependencies other than GD? Any php modules required? We’ve turned on template debugging and it looks like it’s processing:

(0.005377) - Beginning Tag Processing - (0.005398) Parsing Tags in Template (0.005460) Tag: {exp:imgsizer:size src="http://www.bluetigergifts.com/images/uploads/IMG_0331.JPG" width="200" alt="My Title"} (0.005707) Closing Tag Found (0.005807) Tag: {exp:imgsizer:size src="/images/uploads/ist2_6110537-vetenian-mask-of-the-venice-carnival.jpg" width="200"} (0.005914) Closing Tag Found (0.005961) Processing Tags (0.005990) Plugin Tag: Imgsizer/size (0.006012) Plugin Tag: Imgsizer/size (0.006030) Including Files for Tag and Modules (0.008541) Beginning Final Tag Data Processing (0.008565) Calling Class/Method: Imgsizer/size (0.008692) -> Class Called: Imgsizer (0.008715) -> Method Called: size (0.008940) -> Data Returned (0.008970) Calling Class/Method: Imgsizer/size (0.009032) -> Class Called: Imgsizer (0.009051) -> Method Called: size (0.009193) -> Data Returned (0.009222) - End Tag Processing -

We’re at a loss as to why it’s not working…

       
Danny T.'s avatar
Danny T.
426 posts
17 years ago
Danny T.'s avatar Danny T.

Is anyone having reported issues with dynamically resizing an author’s avatar? Not sure if this is because of the Solspace module or not, but I’m getting some issues with it.

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

I am having the same problem as impGabe in that nothing renders in the HTML at all.

I have deleted and recreated a cache folder and set the permissions to 777 as well. It works great in MAMP but doesn’t work at all online. Very strange!

       
ropeadope's avatar
ropeadope
98 posts
17 years ago
ropeadope's avatar ropeadope

Hello all, I’m having an issue with image resizer not liking {variables}. I’m trying to resize the following image from a photo gallery:

{exp:imgsizer:size src="{site_url}/images/galleries/{cat_folder}/{filename}_medium.jpg" width="283"  height="200"}

I tried using the Extract URL but that didn’t seem to work. Any ideas?

       
evasion's avatar
evasion
58 posts
17 years ago
evasion's avatar evasion

Are you sure your variables are ok ?

Could you do something like that :

PATH : "{site_url}/images/galleries/{cat_folder}/{filename}_medium.jpg"

And display the result please ?

       
ropeadope's avatar
ropeadope
98 posts
17 years ago
ropeadope's avatar ropeadope

Heres the result:

PATH : "http://rootdownmedia.com/cutchemist//images/galleries/hardsell/l_607f97f412ad0752cf24323867655403_medium.jpg"

I think a problem may be that the Image Sizer code is wrapped in an EE SQL query?

{exp:query sql="SELECT cat_folder, parent_id, cat_name, filename, entry_id FROM exp_gallery_categories c, exp_gallery_entries e WHERE e.cat_id= c.cat_id AND e.cat_id = '{category_id}' AND custom_field_one = 'Yes'"} IMAGE SIZER {/exp:query}
       
evasion's avatar
evasion
58 posts
17 years ago
evasion's avatar evasion

It may be some cache problem ? Do your directory has the correct right ?

You may try

{exp:imgsizer:size src="/images/galleries/{cat_folder}/{filename}_medium.jpg" width="283"  height="200" cache="no"}

To see if it works without caching. You may also look at your directory to see if the ‘cache’ folder has been created.

Also try without specifiying both width and height. According to the help, only one parameter is needed.

       
ropeadope's avatar
ropeadope
98 posts
17 years ago
ropeadope's avatar ropeadope

Brilliant. that worked. you rock evasion!

but why does turning cache OFF make it work? Ideally, would like these images to be cached

       
First 12 13 14 15 16 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.