webino / WebinoImageThumb

:scissors: Webino™ Image thumbnailer for Zend Framework [LTS] http://webino.github.io/WebinoImageThumb
BSD 3-Clause "New" or "Revised" License
40 stars 21 forks source link

After save image background black #22

Open apoca opened 7 years ago

apoca commented 7 years ago

After alter the image the background stays black:

https://s3-eu-west-1.amazonaws.com/esolidar-proto-uploads/brands/580a0aac-1508-435b-bba5-78f800000000-DETAIL.jpg

$thumb1 = $this->thumbnailer->create($path_complete . $new_filename, $options = [], $plugins = []); $thumb1->crop($imgData->x, $imgData->y, $imgData->width, $imgData->height); $thumb1->rotateImageNDegrees($imgData->rotate); $thumb1->adaptiveResize(200, 200); $thumb1->save($path_complete . $new_name. '-DETAIL.' . $ext);

bacinsky commented 7 years ago

Hi, this is a bug in the PHPThumb library and it seems abandoned. There is a quick fix in the pull requests and I'm currently using my old fork https://github.com/bacinsky/PHPThumb/tree/develop I'm planning to use Imagine library instead but I'm too busy now unfortunately.