Trying to add an image to a new product causes a crash

07.03.2026 11:32
#1
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Сообщения: 65
Quote
Trying to add an image to a new product causes a crash

Hello,
Longtime I haven't had an issue...
Using Joomla 6.0.3 and a rather old Joomshopping 5.4 because I have heavily modified internals...
Trying to add an image to a new product as I always did, I got this time the following error :
0 imagejpeg(): Argument #3 ($quality) must be at between -1 and 100
Adding Max Error reporting, I could figure that it's happening at line 297 of ImageLib.php but can't figure why.
Tried to add echo $qty before the Imagejpeg call but can't get anything back...
Could you try to let me know where to look for a solution?
Thx
Philippe


Joomla: 6.0.3
JoomShopping: 5.4
PHP: 8.4.18
MySQL: 8.0.36
Website Url: www.produitsduperche.fr
 
07.03.2026 12:03
#2
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Сообщения: 65
Quote
Aw: Trying to add an image to a new product causes a crash

Fixed it temporarily by replacing
imagejpeg($thumb, $name, $qty)
with
imagejpeg($thumb, $name, 85) in ImageLib, but....

 
07.03.2026 12:42
#3
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28361
Quote
Aw: Trying to add an image to a new product causes a crash

See new version
https://github.com/joomshopping/joomshopping/blob/master/site/Lib/ImageLib.php

 
07.03.2026 13:55
#4
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Сообщения: 65
Quote
Aw: Trying to add an image to a new product causes a crash

Thx.
Is this the version included in the latest 5.9?
If ues, tried it with no change.

 
07.03.2026 17:56
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28361
Quote
Aw: Trying to add an image to a new product causes a crash

configuration / Image

Image quality ?

 
07.03.2026 19:42
#6
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Сообщения: 65
Quote
Aw: Trying to add an image to a new product causes a crash

Well, image was, as always, a 72 dpi 450x450 px image (about 110Kb)

 
07.03.2026 19:44
#7
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Сообщения: 65
Quote
Aw: Trying to add an image to a new product causes a crash

Looks like image quality was not evaliuated but can’t figure out why

 
07.03.2026 20:56
#8
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28361
Quote
Aw: Trying to add an image to a new product causes a crash

You didn't answer my question.

configuration / Image
Image quality ?
----------------
Need set 0-100
Example: 80

 
07.03.2026 21:06
#9
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Сообщения: 65
Quote
Aw: Trying to add an image to a new product causes a crash

Don’t know where it’s set. Looked at Config but did not see any param like this in Config.
Never set it anyway…
Remember I’ using sort of a Joomshopping 5.3/5.4

 
07.03.2026 23:02
#10
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28361
Quote
Aw: Trying to add an image to a new product causes a crash

Adminstrator / JoomShopping / Configuration / Image

 
08.03.2026 12:29
#11
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Сообщения: 65
Quote
Aw: Trying to add an image to a new product causes a crash

Interestingly, this was set to 400, which, obviously, doesn't work!
The thing is I never set it to 400...
So, it looks like a non-issue...
Thx for pointing me there...
Cheers
Philippe

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.