I am selling digital & downloadable files in .jpg, .png, .gif formats. When I create a new WooCommerce product and upload a new digital file on the product edit screen, the Dante theme creates 14 additional images. Now, I understand why these images are created for regular post or page uploads via the media library because I understand multiple sizes are needed for the theme to display images properly. On the other hand, this process is completely unnecessary for WooCommerce digital product uploads. WooCommerce uploads will never be displayed by the theme & all files that are uploaded to the WooCommerce uploads folder are meant only for download after payment.
In order to keep my file system clean and efficient, I have to go in and delete each extra image individually. Eventually I figured out how to create a filter via FTP in order to select all 14 extra images created for each product uploaded. So every time I create a new product with a digital download w/ image file type (.jpg, .png, .gif), I have to go in and delete 14 useless images. See attached image for an example of the filter I created for FTP extra image deletion of .jpg format. You should be able to tell which files are unnecessary because the size of images created by the theme are attached to the file name.
Is there a piece of code that I can stick in my functions.php or better yet, can you provide a fix in the next update for everyone so that extra files for .jpg, .png, .gif, etc. will not be created if they are uploaded via the WooCommerce uploads folder?
Thank you so much for your time and effort! I appreciate you and your work!
Brooke
Attachments:
You must be
logged in to view attached files.