- Posts: 87
COMMUNITY FORUM
[SOLVED] K2 image cache rebuild
- Michael Yaeger
- Offline
- Premium Member
Michael Yaeger wrote: We've added watermarks to all images in the site and replaced them on the server. However, K2 items do not display the updated images. Is running the above mentioned script required?
Please Log in or Create an account to join the conversation.
- Michael Yaeger
- Offline
- Premium Member
- Posts: 87
www.individual-it.net/en/Joomla/View-category.html
However, I still need a solution to rebuild the category images. It seems K2 discards the original image file location and rewrites all the images in the database and on the server with the category ID as the filename. That means all the information about the original file is LOST!
So, how can I rebuild all K2 category images from the original files in the Joomla! images folder?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Michael Yaeger
- Offline
- Premium Member
- Posts: 87
Krikor wrote: Unfortunately you will have to manually reupload these images.
I don't believe manually going into 481 categories in the K2 admin to upload images is a recommended task.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
You can use an automation tool like Grunt if you want to downsize your images, if you are looking to decrease the size.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- TheAnt
- Offline
- Premium Member
- Posts: 112
I used the script with a J! 3.8.1/K2 2.8.0 site to resize the cached images. It worked to recreate the cache, but now I don't see the items main images anymore. If I open every item, no image is available in image tab. Maybe because the script used a different name for the cached files?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- TheAnt
- Offline
- Premium Member
- Posts: 112
Yes, but for:Krikor wrote: Are you getting any 403/404 errors in your console?
fontawesome-webfont.ttf Failed to load resource: the server responded with a status of 404 (Not Found)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- TheAnt
- Offline
- Premium Member
- Posts: 112
looking at the backup copy I see that the script ha created only a few files, into the cache there are 876 files, into the K2 media items one there are just some dozen.
Please Log in or Create an account to join the conversation.