Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image crop problem
#1
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
Reply
#2
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."
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
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).
Reply
#4
which PGP-version?
GDLib installed?

DEBUG-Option in gsconfig.php activated?

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

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
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().
Reply
#6
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.
Reply




Users browsing this thread: 1 Guest(s)