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

JmanPro's avatar
JmanPro
49 posts
15 years ago
JmanPro's avatar JmanPro
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9000 bytes) in /nfs/c01/h04/mnt/1234/domains/mydomain.com/system/expressionengine/third_party/imgsizer/pi.imgsizer.php on line 555 What does this mean / how do I fix it? Using: {exp:channel:entries channel="releases" sort="desc" limit="1"} {exp:imgsizer:size src="{release-front-cover}”} {sized} {/exp:imgsizer:size} {/exp:channel:entries} In EE2.02.

I’ve had that happen before. Have you used this plugin before, or is this the first time? When I initially set it up I had something wrong in the path settings I believe. Recently I switched to ED Imageresizer, due to some errors I was getting like this. (Was trying to resize a 9 meg image, and kept getting these out of memory errors).

       
dominickelly's avatar
dominickelly
179 posts
15 years ago
dominickelly's avatar dominickelly

First time. Not understanding 😊

       
dominickelly's avatar
dominickelly
179 posts
15 years ago
dominickelly's avatar dominickelly

Tried using ED Imageresize in 2.02, but it doesn’t show up in the plugin list…

http://github.com/erskinedesign/ed.imageresizer.ee2_addon/blob/master/pi.ed_imageresizer.php

       
dominickelly's avatar
dominickelly
179 posts
15 years ago
dominickelly's avatar dominickelly

Also tried:

http://github.com/erskinedesign/ED-Imageresizer/blob/master/pi.ed_imageresizer.php

Nothing appears in the list of plugins..

       
goodcompany's avatar
goodcompany
51 posts
15 years ago
goodcompany's avatar goodcompany

Same problem as @dominickelly. Dropped it into my plugins folder, but it’s not showing up in the list…

       
Wolfram's avatar
Wolfram
115 posts
15 years ago
Wolfram's avatar Wolfram

Same here. Image Sizer v2.6 not shown in plugin list of Build 20100430.

       
Wolfram's avatar
Wolfram
115 posts
15 years ago
Wolfram's avatar Wolfram

Never mind, my mistake! The plugin has to be put in its “own” folder named after the plugin as explained here and here.

       
dominickelly's avatar
dominickelly
179 posts
15 years ago
dominickelly's avatar dominickelly

Thanks Wolfram, to clarify - in this case the folder must be called ‘ed_imageresizer’.

       
goodcompany's avatar
goodcompany
51 posts
15 years ago
goodcompany's avatar goodcompany

Thanks @Wolfram! Had not seen that.

@dominickelly curious, why “ed_imageresizer” and not just “imgsizer” (after the 2.0 plugin name) ?

       
Wolfram's avatar
Wolfram
115 posts
15 years ago
Wolfram's avatar Wolfram

Glad to read that you guys could get your plugins working as well 😊 The reason for the different names is: there are two Resizers, one being “ed_imageresizer” and the other the “imgsizer” from Lumis.

Greetings! Wolfram

       
goodcompany's avatar
goodcompany
51 posts
15 years ago
goodcompany's avatar goodcompany

Roger that. Makes sense 😊. Anyone read or seen a comparison of the two, feature or performance wise? Been away for a while and not sure what the consensus is or if one of them is deprecated and/or tapering off in development. Always been happy with imgsizer but I thought I would ask.

       
Wolfram's avatar
Wolfram
115 posts
15 years ago
Wolfram's avatar Wolfram

I am/was happy with imgsizer as well, so I can´t tell anything about ed_imageresizer.

       
Nick Gascoigne's avatar
Nick Gascoigne
14 posts
15 years ago
Nick Gascoigne's avatar Nick Gascoigne

If anyone wants to get the plugin to crop from the top rather than the centre, I ammended the following on line 598. Seems to work ok.

//imagecopyresampled($image_resized, $image, -$int_width, -$int_height, 0, 0, $adjusted_width, $adjusted_height, $width_old, $height_old);

imagecopyresampled($image_resized, $image, -$int_width, 0, 0, 0, $adjusted_width, $adjusted_height, $width_old, $height_old);

Basically replace -$int_height with 0.

       
Rob Quigley's avatar
Rob Quigley
236 posts
15 years ago
Rob Quigley's avatar Rob Quigley

I’m finally getting around to replace php thumb on a site and I use related entries to output the photos. Is it possible to use the related entries tag inside the URL parameter of the plugin to set the URL output? Also, would like to use a conditional too. I’ve tried parameter parse=”inward” and no luck.

       
Rob Quigley's avatar
Rob Quigley
236 posts
15 years ago
Rob Quigley's avatar Rob Quigley

I’ve placed the plugin into an embed so I can use related entries and a conditional to dynamically update the URL depending on some conditions. It would be great if there was a way to act on the URL in a dynamic way first and then set it in the plugin. The only way I could see doing that as is was passing variables into an embedded template – which really is a poor solution given the overhead of using embeds.

       
First 48 49 50 51 52

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.