Hi,
Is there a way to completely disable the PHP-GD compression?
Like I told you, you need to change your configuration in order to not reprocess the image.
You can't tweak how PHP-GD optimize the image compression ; you can use a lower ratio in the compression to have lower size images but you will also loose quality.. And that's not what you want.
So, like I wrote you in my previous message:
So I will recommend you to check your HikaShop configuration for images so HikaShop won't require to reprocess the uploaded images.
Please change the image restriction to something a little bit bigger, like "1295x865".
Otherwise you can modify the HikaShop helper image to not resize the image if the restriction size is the same.
File : administrator/components/com_hikashop/helpers/image.php
function scaleImage($x, $y, $cx, $cy, $scaleMode = 'inside') {
if(empty($cx)) $cx = 9999;
if(empty($cy)) $cy = 9999;
if ($x >= $cx || $y >= $cy) {
Into
function scaleImage($x, $y, $cx, $cy, $scaleMode = 'inside') {
if(empty($cx)) $cx = 9999;
if(empty($cy)) $cy = 9999;
if ($x > $cx || $y > $cy) {
It is something I will commit in HikaShop for the future release.
Regards,