HOWEVER, the webp images we are importing are not being cached or converted??
Any ideas how we can do this? basically need it to check /image dir ... create cache / webpcache if .png .jpg or .webp
What import extension are you using? What webp extension? Website URL?
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
https://www.opencart.com/index.php?rout ... earch=webp
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
This is the extension i installed https://www.opencart.com/index.php?rout ... earch=webp
Working fine, by that i mean its convert jpg / png to webp
HOWEVER, the problem I am trying to solve is the ability to UPLOAD Webp directly, (just as i can now png / jpg) .. I have imported some products with images already in webp = when i check info i can see details there /dir/imagename.webp .. however front end = wont show image, on checking source its not created the various sizes etc so not in cache folder
note using OC 3.36
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
So basically so in db they look like this product_image_id | product id | data/DIR/1152222162_3.jpg < IF jpg = no issue system is finding them, creating resized images and putting them into cache....... Which then gets cached again to cachewebp
however when we import webp product_image_id | product id | data/DIR/1152222162_3.webp >> Nothing happens, it doesnt (cant) create the resized images and add to cache
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
understood, sorry i thought this would be where i should post it
Hi!bigdm wrote: ↑Thu Jun 23, 2022 7:04 pmI have an issue, we are using import function to upload new products + images which our provider has now changed to webp, we have installed webp plugin which works fine, converting all current images to webp..
HOWEVER, the webp images we are importing are not being cached or converted??
Any ideas how we can do this? basically need it to check /image dir ... create cache / webpcache if .png .jpg or .webp
file:system/library/image.php
Code: Select all
if ($this->mime == 'image/gif') {
$this->image = imagecreatefromgif($file);
} elseif ($this->mime == 'image/png') {
$this->image = imagecreatefrompng($file);
} elseif ($this->mime == 'image/jpeg') {
$this->image = imagecreatefromjpeg($file);
} elseif ($this->mime == 'image/webp') {
$this->image = imagecreatefromwebp($file);
}
My FREE extensions in marketplace. [ security | flexibility | speedup ]
Thank you for your suggestion, but already tried that didnt seem to workhalfhope wrote: ↑Thu Jun 23, 2022 11:10 pmHi!bigdm wrote: ↑Thu Jun 23, 2022 7:04 pmI have an issue, we are using import function to upload new products + images which our provider has now changed to webp, we have installed webp plugin which works fine, converting all current images to webp..
HOWEVER, the webp images we are importing are not being cached or converted??
Any ideas how we can do this? basically need it to check /image dir ... create cache / webpcache if .png .jpg or .webp
file:system/library/image.phphttps://www.php.net/manual/ru/function. ... omwebp.phpCode: Select all
if ($this->mime == 'image/gif') { $this->image = imagecreatefromgif($file); } elseif ($this->mime == 'image/png') { $this->image = imagecreatefrompng($file); } elseif ($this->mime == 'image/jpeg') { $this->image = imagecreatefromjpeg($file); } elseif ($this->mime == 'image/webp') { $this->image = imagecreatefromwebp($file); }
And from journal 3.2.0 enabled system>settings>>webp format
But
When i upload webp image from image manager it shows warning incorrect file type.
When i tried to upload webp image from file ftp client, .webp image gets upload and When i see on front end it show blank image just as you've shown in video
What can I do ?
Contact the Journal support, this is not an OpenCart issue. Or use OpenCart 3.0.4.0 or 3.0.4.1, not the Journal3 framework.Ankit11188 wrote: ↑Wed May 28, 2025 2:14 amI'm using opencart 3.0.3.8
And from journal 3.2.0 enabled system>settings>>webp format
But
When i upload webp image from image manager it shows warning incorrect file type.
When i tried to upload webp image from file ftp client, .webp image gets upload and When i see on front end it show blank image just as you've shown in video
What can I do ?
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Users browsing this forum: No registered users and 5 guests