Hi,
please edit the file "administrator/components/com_hikashop/helper/image.php" and replace
$scaling = $this->scaleImage($origin->width, $origin->height, $size['x'], $size['y'], $scalemode);
if($scaling !== false) {
$this->thumbnail_x = $scaling[0];
$this->thumbnail_y = $scaling[1];
} else {
$this->thumbnail_x = $origin->width;
$this->thumbnail_y = $origin->height;
}
By:
$scaling = $this->scaleImage($origin->width, $origin->height, $size['x'], $size['y'], $scalemode);
if($scaling !== false) {
$this->thumbnail_x = $scaling[0];
$this->thumbnail_y = $scaling[1];
} else {
$this->thumbnail_x = $origin->width;
$this->thumbnail_y = $origin->height;
}
if(empty($size['x']))
$size['x'] = $scaling[0];
if(empty($size['y']))
$size['y'] = $scaling[1];
It should fix your problem of "forceSize" and empty width/height value.
The patch will be include in the next HikaShop build.
Regards,