28 of 39
28
plugin: Image Sizer
Posted: 27 June 2009 11:49 AM   [ Ignore ]   [ # 487 ]  
Grad Student
Rank
Total Posts:  48
Joined  07-03-2008

Im completely shtuck!

Iv installed the plugin, as iv done plenty of times before, but its not creating the cached image!!

I dont know WHATS going on… but this is the debugging im getting.

it looks like the url path is being sent html encoded parameters…

(0.090811)      Parsing Tags in Template
(0.090835)      Tag: {exp:imgsizer:size src="/images/home/pic1.jpg" width="230"}
(0.090922)      No Closing Tag
(0.090974)      Tag: {exp:imgsizer:size src="" width="230"}
(0.091045)      No Closing Tag
(0.091091)      Tag: {exp:imgsizer:size src="/images/home/pic2.jpg" width="230"}
(0.091170)      No Closing Tag
(0.091209)      Processing Tags
(0.091236)      Plugin Tag: Imgsizer/size
(0.091256)      Plugin Tag: Imgsizer/size
(0.091275)      Plugin Tag: Imgsizer/size
(0.091292)      Including Files for Tag and Modules
(0.093475)      Beginning Final Tag Data Processing
(0.093495)      Calling Class/Method: Imgsizer/size
(0.093570)       -> Class Called: Imgsizer
(0.093591)       -> Method Called: size
(0.119659)       -> Data Returned
(0.119703)      Calling Class/Method: Imgsizer/size
(0.119792)       -> Class Called: Imgsizer
(0.119814)       -> Method Called: size
(0.119872)      Returning No Results Content
(0.119888)       -> Data Returned
(0.119916)      Calling Class/Method: Imgsizer/size
(0.119975)       -> Class Called: Imgsizer
(0.119993)       -> Method Called: size
(0.152242)       -> Data Returned
(0.152296)       - End Tag Processing -

even tho, my tag says

{exp:imgsizer:size src="/images/home/pic1.jpg" width="230"}
Profile
 
 
Posted: 27 June 2009 01:01 PM   [ Ignore ]   [ # 488 ]  
Grad Student
Rank
Total Posts:  48
Joined  07-03-2008

Solved.

Looks like the plugin debugging just refused to work!

Did some manual debugging (print statements ftw!), and managed to get it nailed down to some really odd permissions issues.

Profile
 
 
Posted: 02 July 2009 06:25 PM   [ Ignore ]   [ # 489 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  247
Joined  04-20-2007

I’m trying real hard but my thumbnails keep getting squished….

{exp:imgsizer:size src="{photo}" width="90" height="90"}<img src="{photo}" width="{width}" height="{height}" border="0" />{/exp:imgsizer:size}

...resizes fine but squeezes my landscape-oriented photos horizontally.

am I doing it wrong?

thanks.

Profile
 
 
Posted: 03 July 2009 12:29 AM   [ Ignore ]   [ # 490 ]  
Grad Student
Avatar
Rank
Total Posts:  69
Joined  05-01-2007

You should use the auto parameters :

{exp:imgsizer:size image="{photo}" auto="90" alt="Thumb"}{/exp:imgsizer:size}
 Signature 

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

Profile
 
 
Posted: 03 July 2009 10:56 AM   [ Ignore ]   [ # 491 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  112
Joined  07-30-2008

Is there a simple step-by-step, or complete example somewhere? Or some kind of admin config I have to set up?

1st example from the doc (I’ve changed the file name to one on my server):

{exp:imgsizer:size src="/images/news/moped.jpg" width="200" alt="My Title" id="img_5334" class="entry_img"}

Results in nothing output to HTML. Do I have to set permissions for some directory?

Profile
 
 
Posted: 03 July 2009 11:23 AM   [ Ignore ]   [ # 492 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  112
Joined  07-30-2008

Ah okay, as I suspected, you have to create a “sized” directory and then chmod 777 and chown it.

Working now..

Profile
 
 
Posted: 05 July 2009 01:43 AM   [ Ignore ]   [ # 493 ]  
Summer Student
Total Posts:  7
Joined  05-15-2008

I’ve tried using this plugin but I keep getting an error on my local machine.

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 36000 bytes) in D:\sites\EECore\system\plugins\pi.imgsizer.php on line 554

Any suggestions?

cheers

Profile
 
 
Posted: 05 July 2009 02:01 AM   [ Ignore ]   [ # 494 ]  
Summer Student
Total Posts:  7
Joined  05-15-2008

Woops! - no width or height was set on the tag so resulted in that error.

Profile
 
 
Posted: 06 July 2009 06:40 AM   [ Ignore ]   [ # 495 ]  
Summer Student
Total Posts:  6
Joined  12-02-2007

Does anyone know if it is possible to use this plugin in conjunction with eeFlickr?

What i would like to do is to let eeFlickr grab a bunch of images from my Flickr account then display those images as square thumbs. Obviously Flickr has it’s own thumbnail images but these are only 75 x 75 pixels and i would love to be able to show larger thumbs than this.

I have tried placing the imgsizer tag inside my eeFlickr call but i get nothing back. After looking at the plugin it seems the problem occurs when cUrl goes off to grab the image for local caching.

Doing a print_r(); on curl_error i get “Could not connect to host” which would lead me to suspect that there is some security on Flickrs server stopping the download of images.

Can anyone help?

 Signature 

Mat Keller
Digital Designer, Web Developer & Photographer

http://www.mathewkeller.com

Profile
 
 
Posted: 07 July 2009 10:42 AM   [ Ignore ]   [ # 496 ]  
Grad Student
Avatar
Rank
Total Posts:  31
Joined  02-05-2009

I can’t seem to get this to work at all. I am using FF Matrix and the nGen file uploader on a MSM site. I have created the ‘cache’ folder correctly and everything but when I put in the code, it doesn’t output any HTML, nor does it seem to create a cached image.

Any thoughts?

My code:

{if product_gallery}
                                            
<div class="productgallery">
                                        
{product_gallery}
                                                
<a href="{product_gallery_image}">{exp:imgsizer:size src="{product_gallery_image}" width="40" alt="{product_gallery_caption}" id="img_5334" class="entry_img"}</a>
                                        
{/product_gallery}
                                            
</div>
                                    
{/if}

All this yields is:

<div class="productgallery">
                                        
                                                <
a href="/images/products/tosavealife_novel_large_1.jpg"></a>
                                        
                                                <
a href="/images/products/tosavealife_novel_back_large.jpg"></a>
                                        
                                            </
div>
Profile
 
 
Posted: 07 July 2009 11:12 AM   [ Ignore ]   [ # 497 ]  
Grad Student
Avatar
Rank
Total Posts:  31
Joined  02-05-2009
Mike Stecker - 07 July 2009 10:42 AM

I can’t seem to get this to work at all. I am using FF Matrix and the nGen file uploader on a MSM site. I have created the ‘cache’ folder correctly and everything but when I put in the code, it doesn’t output any HTML, nor does it seem to create a cached image.

OK, so I manually set my base_path and it works fine now. Where do I have this set globally so I don’t need to define it everytime?

Profile
 
 
Posted: 07 July 2009 11:32 AM   [ Ignore ]   [ # 498 ]  
Research Assistant
RankRankRank
Total Posts:  495
Joined  02-22-2006
Mike Stecker - 07 July 2009 11:12 AM

OK, so I manually set my base_path and it works fine now. Where do I have this set globally so I don’t need to define it everytime?

Would one of these work for you:

Fresh variables?

Global Path variables?

User-Defined Global Template variables?

PHP?

{ee:tag param="<?php echo $_SERVER['DOCUMENT_ROOT'].'/some/path/if/needed/'; ?>/more/path/to/image.jpg"}{/ee:tag}

Hths!
Cheers,
M

 Signature 

EE Plugins: Keywordz, x2html, SizePlus, randimgplus & randPro

Profile
 
 
Posted: 09 July 2009 03:01 PM   [ Ignore ]   [ # 499 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1925
Joined  08-02-2006

I’ve used this plugin many times before with no issues. I’m trying to use it on a client’s site now and they are currently hosted on Media Temple. I cannot get it to work at all; I get nothing. I’ve asked my client to ask Media Temple if GD Library is installed and Media Temple has confirmed it’s installed.

Not sure what else I can do here? Any ideas?

EDIT: Sorry, got this figured out. I wasn’t using a relative path. Doh!

 Signature 

Deron Sizemore
==========
LogoGala | Kentucky Golfing
Twitter: Deron Sizemore | LogoGala

Profile
 
 
Posted: 13 July 2009 01:15 PM   [ Ignore ]   [ # 500 ]  
Summer Student
Avatar
Total Posts:  29
Joined  09-14-2006

I’m trying to get this plugin working on a new host…so I suspect it’s some sort of server issue since I’ve been able to get it to work before on other sites. Anyhow, I didn’t see this error mentioned in here so I’m hoping somebody can shed some light for me. Here’s the error I get:

Warning: mkdir() [function.mkdir]: Permission denied in /home/pcms/public_html/kitchen/plugins/pi.imgsizer.php on line 205

And here’s my code:

{exp:weblog:entries weblog="{my_weblog}"}
        {exp
:imgsizer:size src="{image}" alt="{title}" height="92"}
    {
/exp:weblog:entries}

Naturally, when I input the { image } in my template without the imgsizer tag it works. Also, I’ve created the cache folder, perms at 777, etc. So I am baffled…any ideas?

Thanks,
Jason

Profile
 
 
Posted: 13 July 2009 01:40 PM   [ Ignore ]   [ # 501 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1211
Joined  04-14-2007

This looks like some sort of permissions issue not allowing the plugin to create directories.

There might be a way to address this with settings. But this is where someone else with more experience in server environments might be able to provide some guidance.

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 13 July 2009 02:27 PM   [ Ignore ]   [ # 502 ]  
Summer Student
Avatar
Total Posts:  29
Joined  09-14-2006

(continued)...

Here is the code from line 205 in the imgsizer plugin file:

// make the directory if we can
                
if (!mkdir($img['cache_path'],0777,true))

The strange part is that I’ve manually created this directory and it does have 777 permissions set. Any ideas?

Profile
 
 
Posted: 16 July 2009 05:39 AM   [ Ignore ]   [ # 503 ]  
Grad Student
Rank
Total Posts:  58
Joined  12-16-2007

Hi,

I’m using the following code, but it’s not working with 2.5.6 in combination with FF Matrix (fieldframe 1.2.1). I’m getting a black screen:

<div class="carrousel-photos">
    
{package_photos limit="1"}
    
<a href="{photo_src}" title="{photo_desc}" rel="group-{entry_id}" class="photobox">
        
{exp:imgsizer:size src="{photo_src}" width="508" alt="{photo_desc}" id="carrousel-image"}
    
</a>
    
{/package_photos}
</div><!--end:carrousel-photos-->

<
div class="carrousel-thumbnails">
    
{package_photos}
        
<div class="carrousel-thumbnail">
        
{exp:imgsizer:size src="{photo_src}" width="100" alt="{photo_desc}"}
        
</div>
    
{/package_photos}
</div><!--end:carrousel-thumbnails-->

If I delete the second {exp:imgsizer:size} - tag and replace it with {photo_src}, the correct path to the image is shown. What could be the problem here?

Profile
 
 
Posted: 17 July 2009 07:19 PM   [ Ignore ]   [ # 504 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  477
Joined  12-04-2007

help!! please running 1.6.7 I install the plugin I check the GD on server:

GD Support   enabled
GD Version   bundled (2.0.34 compatible)
FreeType Support   enabled
FreeType Linkage   with freetype
FreeType Version   2.2.1
GIF Read Support   enabled
GIF Create Support   enabled
JPG Support   enabled
PNG Support   enabled
WBMP Support   enabled
XPM Support   enabled
XBM Support   enabled

I put this on a template:

{exp:imgsizer:size src="http://www.google.com/intl/en_ALL/images/logo.gif" width="10" alt="google logo"}

Result:
DONT SHOW ANYTHING? whats the problem? help please, thanks

Profile
 
 
   
28 of 39
28
 
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 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120568 Total Logged-in Users: 43
Total Topics: 126614 Total Anonymous Users: 25
Total Replies: 665612 Total Guests: 292
Total Posts: 792226    
Members ( View Memberlist )