|
07.03.2026 11:32
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
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
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 28361
|
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
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 28361
|
Aw: Trying to add an image to a new product causes a crash
configuration / Image
Image quality ?
|
| |
|
07.03.2026 19:42
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
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
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 28361
|
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
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 28361
|
Aw: Trying to add an image to a new product causes a crash
Adminstrator / JoomShopping / Configuration / Image
|
| |
|
08.03.2026 12:29
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
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
|
| |