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

angstmann's avatar
angstmann
225 posts
16 years ago
angstmann's avatar angstmann

Thanks for the reply. In that case unless there is any other solution I think I will move this dev site elsewhere and see how the Image Sizer plugin works once its moved. Cheers!

       
Clearpeak's avatar
Clearpeak
413 posts
16 years ago
Clearpeak's avatar Clearpeak

Hi,

I’ve used this plugin many times successfully in the past but I’m on a different server this time and for some reason I can’t get it to work. The phpinfo says that GD is enable and that it is (version 2.0.34 compatible). I’m quite sure I’ve got my file path right. I’m using the file plugin like always.

When I put template debugging on I see that the right path is being output but it say: Returning No Results Content.

{exp:imgsizer:size src="{inventory-photo}" width="180"}

Any idea what’s going on?

Thanks

       
Fábio Marchi's avatar
Fábio Marchi
103 posts
16 years ago
Fábio Marchi's avatar Fábio Marchi

Fodney, maybe you have it the same output error with i got it some time ago, just because EE was inserting the paragraph tags in my results. Try to change in webLog preferences / Publishing options to mark out the “convert my URLS in links automatically”.

If you was using the LG ImageManager plugin or Mark Huot File Upload plugin, try read this, because resolved my problems:

http://devot-ee.com/articles/item/fix-it-yourself-extensions-or-field-formatting-fiasco/

In any case, its good do it a template output parsing to see what happens when your page renderizes…

Good luck!

       
Clearpeak's avatar
Clearpeak
413 posts
16 years ago
Clearpeak's avatar Clearpeak

Thanks Fabio. I changed the html pref in weblog admin and that didn’t seem to help. I think my file extension is working fine because it outputs fine to a regular img tag. Not sure what’s going on here.

       
Fábio Marchi's avatar
Fábio Marchi
103 posts
16 years ago
Fábio Marchi's avatar Fábio Marchi

Try first to publish a image without imgresizer plugin. Renders ok? Do you created a folder called cache in the same directory where you save your images and set the permissions to 777?

I say this because the imgresizer output its your cached image and if you dont create the “cache” folder with correct permissions, dont will generate a output…

       
Clearpeak's avatar
Clearpeak
413 posts
16 years ago
Clearpeak's avatar Clearpeak

Yes and Yes.

img sizer usually creates it’s own cache folder I find but I went ahead and created my own anyway.

       
Fábio Marchi's avatar
Fábio Marchi
103 posts
16 years ago
Fábio Marchi's avatar Fábio Marchi

Try use this piece of code, with size dimensions pre-formatted:

{exp:imgsizer:size src="{your_image_custom_field}" width="350" height="200" alt="{title}" class="your_image_css_class"}

And define a image class in your css. I remember with one time just working with a definied css class in my template

       
Clearpeak's avatar
Clearpeak
413 posts
16 years ago
Clearpeak's avatar Clearpeak

Thanks but no luck. The tag still doesn’t return anything. Attached is the debugging results

       
Fábio Marchi's avatar
Fábio Marchi
103 posts
16 years ago
Fábio Marchi's avatar Fábio Marchi

Do you upload the php script like binary? Are u using the same FTP app? Sometimes some FTP apps dont upload the php like binary mode (liek ascii text), and the php script dont works.

How u are uploading your image? By the build EE file upload or by a third-party plugin?

And most important: are you are using the latest version of EE and the imgsizer plugin?

       
Fábio Marchi's avatar
Fábio Marchi
103 posts
16 years ago
Fábio Marchi's avatar Fábio Marchi

I use this code to test if all works good.

Create a simple template and see with your image renderizes. Ever with i work with complex templates, i test every piece separatly.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TEST</title>
<style type="text/css">
<!--
.image_css {
margin-top: 3px;
margin-left: 3px;
margin-right: 3px;
margin-bottom: 3px;
border: 10px solid #FF3333;
float: left;
}
-->
</style>

</head>
<body>

{exp:weblog:entries weblog="test" orderby="date" sort="desc" limit="3"}
{exp:imgsizer:size src="{image_custom_field}" width="350" height="200" alt="{title}" class="image_css"}
{/exp:weblog:entries}

</body>
</html>

I dont see another way to dont works imgresizer plugin. Are you shure with GD2 its enabled in your server?

       
Fábio Marchi's avatar
Fábio Marchi
103 posts
16 years ago
Fábio Marchi's avatar Fábio Marchi

fodney, any news in your issue?

       
Kevin Smith's avatar
Kevin Smith
4,784 posts
16 years ago
Kevin Smith's avatar Kevin Smith

I read somewhere back that an option might become available in future versions that would only resize the images if they were a reduction, that they wouldn’t enlarge them. (Which actually makes way more sense than the way it is now. Who wants distorted enlargements by default?) Any word on that? Or has anyone come up with a hack that would accomplish this?

       
stevenL's avatar
stevenL
20 posts
16 years ago
stevenL's avatar stevenL

I keep getting a PHP error:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /www/docs/system/plugins/pi.imgsizer.php on line 524

Any ideas what might be causing this? Is that function part of another part of EE that I may have not installed?

–Edit: I posted too fast…I understand now that this is a PHP function, and it looks like GD is not enabled.

       
mhulse's avatar
mhulse
329 posts
16 years ago
mhulse's avatar mhulse

Note:

{exp:imgsizer:size src="{image}" width="148"}
{url}
{/exp:imgsizer:size}

{url} was replaced with the URL that my blogger setup in his personal profile and not the URL from the imagsizer plugin.

Might be good to setup your single vars to have a prefix of “img_” or something.

Btw, thanks for this plug! Great work!

       
mhulse's avatar
mhulse
329 posts
16 years ago
mhulse's avatar mhulse
{exp:imgsizer:size src="{image}" width="148"}
{url}
{/exp:imgsizer:size}

Ok, I must have copied the above code from somewhere strange, because I just checked the plugin documentation (my plugin admin is broken… had to crack-open the source code), and this code works:



I LOVE the auto feature!!!!!!!

Kick-ass plugin. Thanks!!!!!

Micky

       
First 21 22 23 24 25 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.