GetSimple Support Forum

Full Version: Image crop problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
I'm tring to use the miniatura tool (guess it's used as italian for thumbnail) inside the file and image control panel. Any crop I set generates only a black file (even with differen images): does it have anything to do with the browser (ex. firefox on cmd+B calls one of is own actions)? I've tryed it on firefox and safari: same result. Should I check any server library or setting?
Thank you.
Pietro
go to "Support → Health Check " in the admin panel and see if everything is ok

read here: http://get-simple.info/wiki/installation:modules

"GD Library - This module is needed in order to create thumbnails on uploaded images."
I too am having the same sort of problem. Specifically with this line of code:

admin/inc/imagemanipulation.php -- line 186
Code:
imagecopyresampled($this->image["des"], $this->image["src"], 0, 0, $this->image["targetx"], $this->image["targety"], $this->image["sizex"], $this->image["sizey"], $this->image["sizex"], $this->image["sizey"]);

The thumbnail being created has x/y coordinates of 0/0, and the image is not resized (it's just the cropped width and height of the top left corner of the original image size).
which PGP-version?
GDLib installed?

DEBUG-Option in gsconfig.php activated?

support => health-check: what is the result?
Connie Wrote:which PGP-version?
GDLib installed?

DEBUG-Option in gsconfig.php activated?

support => health-check: what is the result?

Aye yai yai! Sorry!

Latest GetSimple, GDLib is indeed installed,, DEBUG-option is activated, health-check says everything is OK.

Debug says ereg_replace is deprecated, so I just changed that to preg_replace, but no errors pertaining to imagecopyresampled().
Solved it. admin/image.php around line 93:

Code:
<img src="<?php echo $src_folder . $subPath.$src; ?>" id="cropbox" style="max-width:585px;" />

The style="max-width:585px;" should be removed, since Jcrop (the javascript right below it around line 121) already restricts its size. So when you crop it, Jcrop thinks the maximum picture width is 585px, instead of the actual picture width (mine was 1920px), because CSS is shrinking the picture, and Jcrop doesn't know about it.