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
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!
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…
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
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?
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?
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?
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.
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!
{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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.