vilaiporn LiteCart Fan From Thailand Member since Aug 2017 vilaiporn Feb 13 2024 04:51 AM Hello again, it does not work on 2.5.5. The image is not uploaded. Do you have a fix? Thank you
tim Founder From Sweden Member since May 2013 tim Feb 13 2024 04:18 PM Any error message or warning? All working here with the latest for 2.5.x
vilaiporn LiteCart Fan From Thailand Member since Aug 2017 vilaiporn Feb 14 2024 02:22 AM Hello, no errors. Just does not upload.
tim Founder From Sweden Member since May 2013 tim Feb 14 2024 05:35 PM Can't confirm a problem. Mine are uploaded :(
vilaiporn LiteCart Fan From Thailand Member since Aug 2017 vilaiporn Feb 15 2024 01:00 AM Hello, strange. Let me try again from several browser, eventually I will see which kind of error I will receive. I will let you know the results.
vilaiporn LiteCart Fan From Thailand Member since Aug 2017 vilaiporn Feb 17 2024 06:01 AM OK it works but only with .png I was trying with jpg. This the error: [17-Feb-2024 11:54:22 Asia/Bangkok] Warning: imagejpeg() expects parameter 3 to be integer, string given in ~/includes/entities/ent_image.inc.php (Line 821) ← ~/ext/trumbowyg/plugins/upload/trumbowyg.upload.php (Line 30) in write() Can be fix (not urgent)?
tim Founder From Sweden Member since May 2013 tim Feb 17 2024 03:53 PM This could be PHP 8.2 strict variable types. Where '90' is not ok but 90 is. I can upload a fix for that later this day.
tim Founder From Sweden Member since May 2013 tim Feb 17 2024 09:23 PM Here is a patch you can try. https://github.com/litecart/litecart/commit/376e3cbf9a756c060506147cc86a11ca066e29dd
vilaiporn LiteCart Fan From Thailand Member since Aug 2017 vilaiporn Feb 18 2024 03:37 AM With the patch it does upload jpg but in an extremely low quality (see attachment). The white column are part of the image, that is not an error.
tim Founder From Sweden Member since May 2013 tim Feb 18 2024 08:31 PM Check image downsample size in Admin ->Settings -> Images or remove this code from trumbowyg.upload.php: list($width, $height) = explode(',', settings::get('image_downsample_size')); $image->resample($width, $height, 'FIT_ONLY_BIGGER'); }```
vilaiporn LiteCart Fan From Thailand Member since Aug 2017 vilaiporn Feb 21 2024 08:15 AM Still the same result if jpg
tim Founder From Sweden Member since May 2013 tim Feb 21 2024 02:41 PM It works for me, I'm using GD2 too. What happens if you enable the Imagick PHP extension?
vilaiporn LiteCart Fan From Thailand Member since Aug 2017 vilaiporn Feb 27 2024 02:01 AM Great! It works! Thank you.