ux icon indicating copy to clipboard operation
ux copied to clipboard

[LiveComponent] [cropperjs] Doesnt work from pathfile

Open BigOHenry opened this issue 1 year ago • 5 comments

Hello, i have "symfony/ux-cropperjs": "^2.18" and symfony 7.11 (php 8.3.7). I have got problem with getting cropped image after form post (error Unable to init from given binary data.). Front-end part works fine.

I am trying to figure it out, but i ended with even this three lines of code not working:

$path = '/var/www/evo/var/tmp/uploads/avatar_66756f82d2f3b9.34598694.jpg'
$crop = $cropper->createCrop($path);
$image = $crop->getCroppedThumbnail(400, 300);

And still getting this error: obrazek

BigOHenry avatar Jun 21 '24 12:06 BigOHenry

There seems to be a problem with GD trying to read the file.

Is the file readable? Can you read it from your controller ?

smnandre avatar Jun 22 '24 06:06 smnandre

Yes file is readable

BigOHenry avatar Jun 24 '24 06:06 BigOHenry

And got another error when uploaded the PNG file: obrazek

I tried to update intervention/image to new version (3.7), but there are requirements for version ^2.5 (2.7.2 - mid 2021, its pretty old).

BigOHenry avatar Jun 24 '24 06:06 BigOHenry

Could you create the smallest reproducer possible, with the same versions you use in composer ? So we can install/test and understand what is not working as expected / create a fix ?

smnandre avatar Jun 25 '24 22:06 smnandre

I am so sorry, but i dont have spare time :-(

BigOHenry avatar Jun 28 '24 07:06 BigOHenry

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot avatar Dec 29 '24 12:12 carsonbot