12 of 15
12
plugin: Image Sizer
Posted: 18 June 2008 06:53 AM   [ Ignore ]   [ # 199 ]  
Summer Student
Total Posts:  27
Joined  04-13-2008

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

Profile
 
 
Posted: 19 June 2008 06:48 AM   [ Ignore ]   [ # 200 ]  
Summer Student
Total Posts:  27
Joined  04-13-2008

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?

Profile
 
 
Posted: 19 June 2008 10:44 PM   [ Ignore ]   [ # 201 ]  
Summer Student
Total Posts:  9
Joined  07-20-2007

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?

Profile
 
 
Posted: 21 June 2008 09:30 AM   [ Ignore ]   [ # 202 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  329
Joined  04-23-2008

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:

{if content_image != ""}{exp:imgsizer:size src="{content_image}" width="550" height="340" quality="95"}
    
<a href="{title_permalink="content/index"}">
    <
img src="{sized}" width="{width}" height="{height}" alt="Click to read {title}" title="Click to read {title}" class="content_image" />
    </
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="{title_permalink="content/index"}">
    <
img src="{sized}" width="{width}" height="{height}" alt="Click to read {title}" title="Click to read {title}" class="content_image" />
    </
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?

 Signature 

Now, if only I can combine my two favorite things in the world.. Transformers + ExpressionEngine = Nerd Nirvana
Note to self: I am

not a nerd. I swear.
Profile
 
 
Posted: 23 June 2008 11:05 AM   [ Ignore ]   [ # 203 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  364
Joined  05-15-2007

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.

Profile
 
 
Posted: 23 June 2008 05:13 PM   [ Ignore ]   [ # 204 ]  
Grad Student
Rank
Total Posts:  42
Joined  12-16-2005

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…

Profile
 
 
Posted: 23 June 2008 09:09 PM   [ Ignore ]   [ # 205 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  329
Joined  04-23-2008

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.

 Signature 

Now, if only I can combine my two favorite things in the world.. Transformers + ExpressionEngine = Nerd Nirvana
Note to self: I am

not a nerd. I swear.
Profile
 
 
Posted: 24 June 2008 08:17 PM   [ Ignore ]   [ # 206 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1507
Joined  01-05-2007

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!

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 25 June 2008 09:20 PM   [ Ignore ]   [ # 207 ]  
Grad Student
Avatar
Rank
Total Posts:  86
Joined  01-30-2008

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?

Profile
 
 
Posted: 26 June 2008 02:56 AM   [ Ignore ]   [ # 208 ]  
Grad Student
Avatar
Rank
Total Posts:  48
Joined  05-01-2007

Are you sure your variables are ok ?

Could you do something like that :


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

And display the result please ?

 Signature 

Portfolio : http://www.evasion.cc
Weblog : http://www.evasion.cc/blog

Profile
 
 
Posted: 26 June 2008 09:23 AM   [ Ignore ]   [ # 209 ]  
Grad Student
Avatar
Rank
Total Posts:  86
Joined  01-30-2008

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}

Profile
 
 
Posted: 26 June 2008 09:30 AM   [ Ignore ]   [ # 210 ]  
Grad Student
Avatar
Rank
Total Posts:  48
Joined  05-01-2007

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.

 Signature 

Portfolio : http://www.evasion.cc
Weblog : http://www.evasion.cc/blog

Profile
 
 
Posted: 26 June 2008 09:56 AM   [ Ignore ]   [ # 211 ]  
Grad Student
Avatar
Rank
Total Posts:  86
Joined  01-30-2008

Brilliant. that worked. you rock evasion!

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

Profile
 
 
Posted: 26 June 2008 09:58 AM   [ Ignore ]   [ # 212 ]  
Grad Student
Avatar
Rank
Total Posts:  48
Joined  05-01-2007

If the problem is caching you may take a look at the folder’s permission. This folder should be writable, so you might do some ‘chmod’ (ie: chmod 777).

 Signature 

Portfolio : http://www.evasion.cc
Weblog : http://www.evasion.cc/blog

Profile
 
 
Posted: 26 June 2008 10:01 AM   [ Ignore ]   [ # 213 ]  
Grad Student
Avatar
Rank
Total Posts:  86
Joined  01-30-2008

Damn you’re good.  Thanks again

Profile
 
 
Posted: 26 June 2008 11:33 PM   [ Ignore ]   [ # 214 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  329
Joined  04-23-2008

Has anyone else had issues resizing to a width of over 500 pixels and have had issues? If I only define one variable, it can only resize to 500 pixels and under. However, if I provide both a width and a height, I am able to go over 500 pixels of width.

More information about my issue can be found at reply #202 of this thread.

 Signature 

Now, if only I can combine my two favorite things in the world.. Transformers + ExpressionEngine = Nerd Nirvana
Note to self: I am

not a nerd. I swear.
Profile
 
 
Posted: 30 June 2008 06:41 AM   [ Ignore ]   [ # 215 ]  
Lab Assistant
RankRank
Total Posts:  256
Joined  07-04-2007

Is there anyway to get this working with the avatars in the EE forum?

I would prefere to use this rather than phpthumb

Profile
 
 
Posted: 01 July 2008 06:04 PM   [ Ignore ]   [ # 216 ]  
Grad Student
Rank
Total Posts:  42
Joined  12-16-2005

Our PHP/Programming guru has identified an issue in the pi.imgsizer.php file which prevented the plugin from working on our server.

According to him this code (lines 147-151) were giving the plugin the wrong path to the images.
     

if (array_key_exists('DOCUMENT_ROOT',$_ENV))
        
{
            $img_rootstep
= $_ENV['DOCUMENT_ROOT']."/".$img_base;
        
}
        
else

Removing these lines so that  

{
            $img_rootstep
= $_SERVER['DOCUMENT_ROOT']."/".$img_base;
        
}


became the path allowed the plugin to work as advertised.

Our guy thinks it has to do with how cpanel is installed in certain hosting environments. With the code above in place, the plugin was trying to find the image directory inside the directory for cpanel instead of the accounts directory.

Hope this helps some folks….

Profile
 
 
   
12 of 15
12
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 62387 Total Logged-in Users: 42
Total Topics: 76593 Total Anonymous Users: 16
Total Replies: 413634 Total Guests: 545
Total Posts: 490227    
Members ( View Memberlist )
Newest Members:  Bill FishernEJCSpiffOrconmanurightTmeisternoortjemrjmwJake@ecesHoyRu777