support

How Can i remove un-necessary images from image and resources folder

Started by aiswarjya, December 16, 2016, 02:32:25 AM

Previous topic - Next topic

aiswarjya

iN MY HOSTING THEY ARE PROVIDING US 2.50 LACS. FILES/INODES

bUT IN CPANEL IT WAS SHOWING THAT BELOW:

image  ( 174124 inodes)
resources  ( 14108 inodes)

So when i deleted some products,product is deleted but, the images is still there in my image folder. So how can i delete these un-necessary image files.

iMAGES ARE STORED IN BOTH IMAGE AND RESOURCE FOLDER.What is the difference between it,Why the image is not stored in a single folder.Please response us ASAP.


ThANKS AND REGARDS,





Basara


oliver

i am not sure but i think the RESOURCE folder is the main holder of you image
and the image folder are the temp or cache file folder for all the image that will resize to fit on your shop category's and product picture

example
in Resource folder there is a file xxx.jpg

in image folder there is then the file
xxx_000_.jpg-####-45*45.jp
xxx_000_.jpg-####-250*250.jp
xxx_000_.jpg-####-380*380.jp

the server don't need to spend the time to resize it every time when a costumer looks to you products

if i am wrong please correct me :)

timlight10

I have a similar issue. My web host has a limit on number of files. I have some files that are duplicated, or are no longer used/attached to an product/category. Is there a way to easily find and remove these no longer in use images, PDF files, etc... from the Resources folder?

Basara

Hello. Usually, when you delete a product, AbanteCart also removes the images assigned to that product.
You can clear all AbanteCart caches to remove the generated thumbnails, which may delete also hundreds or thousands of cached tmp files. The thumbnails will be generated again automatically only when they are requested.

The resources directory contains the original uploaded files, so it should not be deleted or cleared manually.

timlight10

Unfortunately, I don't think that is what's happened. I have run a daily product import on my store. With "Update on SKU" selected, with a column of images, the importer created a new image each time the import was run. So I now have 20 copies of the same image. Some are assigned to a product, others are abandoned and not used. I want to remove the 20 copies * 5000 products that were uploaded.

Trouble is, these 5000 items are not the only products in the store. So I cannot just delete all images and then re-run the import. That would remove all images from all products and I do not want to do that. I just want to target the images that are abandoned.

Forum Rules Code of conduct
AbanteCart.com 2010 -