Post by donesmarcos » Sun Sep 17, 2023 4:45 pm

Hello everybody,

I'm using OC Version 3.0.3.8 and when I upload png or jpg image it shows correct on catalog page, now if I upload webp image it shows correct thumbs at admin but not show at catalog page.

clicking over the image link I saw that all png and jpg images are poiting to "image/cache" and all webp images are poiting to "home/xxx/public_html/xxx/image/catalog/"

any idea how to fix this wrong path only for webp uploads ?

thanks a lot!

Newbie

Posts

Joined
Wed Apr 29, 2020 9:15 pm

Post by JNeuhoff » Sun Sep 17, 2023 10:25 pm

OpenCart 3.0.3.8 doesn't support webp images. How exactly did you upload your images?

Have you tried the 3.0.x.x_Maintenance release (based on 3.0.3.8, with added bugfixes and PHP 8 support)? That one has support for webp images.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by donesmarcos » Mon Sep 18, 2023 6:22 am

JNeuhoff wrote:
Sun Sep 17, 2023 10:25 pm
OpenCart 3.0.3.8 doesn't support webp images. How exactly did you upload your images?

Have you tried the 3.0.x.x_Maintenance release (based on 3.0.3.8, with added bugfixes and PHP 8 support)? That one has support for webp images.
Hello sir,

Thank you so much for answering

I followed this method : viewtopic.php?f=121&t=210243&p=748237#p747798

and I installed this extension : https://www.opencart.com/index.php?rout ... =64&page=2

I added WebP to the mime server too at system settings.

WebP works fine at admin, thumbs and upload; the only problem is that when I add an image to a product, in the admin area it shows correct, but on the catalog page it shows a broken link because it points to a crazy path.

I tried to edit the OC config file, and I swapped the path for image from : define('DIR_IMAGE', '/home/okami/public_html/decor/image/'); to define('DIR_IMAGE', 'image/'); and WebP images started to show, but the favicon stopped showing, and a few other images show broken.

Webp images point to this path :

Code: Select all

https://website.com/home/okami/public_html/decor/image/catalog/webp/concrete-look-plaster-traditional-rustic-dark-gray.webp
png/jpg images point to this path :

Code: Select all

https://website.com/image/cache/catalog/Rustic/concrete-look-plaster-traditional-rustic-cromium-applied-270x270.png
correct path to Webp image is :

Code: Select all

https://website.com/image/catalog/webp/concrete-look-plaster-traditional-rustic-dark-gray.webp

Newbie

Posts

Joined
Wed Apr 29, 2020 9:15 pm

Post by paulfeakins » Mon Sep 18, 2023 7:52 pm

We also have code for webp images in OpenCart that could be adapted if anyone wants to contact us as a paid job.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by donesmarcos » Tue Sep 19, 2023 4:00 am

paulfeakins wrote:
Mon Sep 18, 2023 7:52 pm
We also have code for webp images in OpenCart that could be adapted if anyone wants to contact us as a paid job.
Hello Paul,
where should I contact u ?
info@antropy.co.uk ?

Thanks

Newbie

Posts

Joined
Wed Apr 29, 2020 9:15 pm

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by SohBH » Tue Sep 19, 2023 5:34 pm

May I know how you define $target_file
$this->log->write($target_file);
$this->log->write($dir);

If you are interested in discussing your web development needs with me, please feel free to contact me at
soh.bheng@gmail.com


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by paulfeakins » Tue Sep 19, 2023 7:23 pm

donesmarcos wrote:
Tue Sep 19, 2023 4:00 am
paulfeakins wrote:
Mon Sep 18, 2023 7:52 pm
We also have code for webp images in OpenCart that could be adapted if anyone wants to contact us as a paid job.
Hello Paul,
where should I contact u ?
info@antropy.co.uk ?
Exactly.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by donesmarcos » Wed Sep 20, 2023 1:01 pm

Majnoon wrote:
Tue Sep 19, 2023 3:32 pm
Have you tried these ?
https://www.opencart.com/index.php?rout ... n_id=38025

or paid one from Mona
https://www.opencart.com/index.php?rout ... n_id=43173
Hello, the free version yes, but didn't work, about paid Mona extension I didn't purchase cause I don't know if it will work, I asked Mona but she didn't answer if it solve my problem or not.

Newbie

Posts

Joined
Wed Apr 29, 2020 9:15 pm
Who is online

Users browsing this forum: No registered users and 10 guests