Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hi, I was searching if there was a fix in this forum for my site but couldn't really find one that is a full solution. So I have implemented CouchCMS webp support with full functionally like previewing the image on the backend as well. Im sharing here in case someone else also need it. Thanks :D

Here are the changed files
CouchCMS Webp Support.zip
(10.93 KiB) Downloaded 295 times


Just replace them in these locations
1. /couch/includes/fileuploader/config.php
2. /couch/includes/kcfinder/config.php
3. /couch/includes/kcfinder/lib/class_fastImage.php
4. /couch/includes/kcfinder/lib/class_gd.php

Be sure to remove the numbers before replacing them :)
View the next post
Image
where innovation meets technology
@alymahryn,
I have implemented the webp upload using editable type image, and it is working.
It allows us to upload the webp image (next-gen) files.
The only thing I noticed is that we can not see a thumbnail (on the local machine only). Could you please look into it? That would be the last piece in the code, i suppose, to allow uploading the files.
Regards,
GXCPL
Image
where innovation meets technology
genxcoders wrote: @alymahryn,
I have implemented the webp upload using editable type image, and it is working.
It allows us to upload the webp image (next-gen) files.
The only thing I noticed is that we can not see a thumbnail (on the local machine only). Could you please look into it? That would be the last piece in the code, i suppose, to allow uploading the files.
Regards,
GXCPL


I don't understand what you're saying. Did you use my solution? or your own?
You can just replace the files as I mentioned on post and it should work without any issues.
@alymahryn,

Yes, i used your solution hence I replied to your post. I have come across another issue, when we use cms:thumbnail tag, the thumbnail of the webp image is not generated and hence not displayed (in list view).

Could you please check for this tag also.

Regards,
GXCPL (CTR)
Image
where innovation meets technology
alymahryn wrote: Hi, I was searching if there was a fix in this forum for my site but couldn't really find one that is a full solution. So I have implemented CouchCMS webp support with full functionally like previewing the image on the backend as well. Im sharing here in case someone else also need it. Thanks :D

Here are the changed files
CouchCMS Webp Support.zip


Just replace them in these locations
1. /couch/includes/fileuploader/config.php
2. /couch/includes/kcfinder/config.php
3. /couch/includes/kcfinder/lib/class_fastImage.php
4. /couch/includes/kcfinder/lib/class_gd.php

Be sure to remove the numbers before replacing them :)


I have implemented this. But there's an error "Unknown Error" when deleting all type image in kcfinder library (including jpg, jpeg & webp). Do you now what's wrong?
6 posts Page 1 of 1