• When I upload my images for sale, their size and quality are mercilessly reduced. How can I ensure that the images for sale are not affected at all? And is it possible to upload them to a location other than the media library, as I’ll be using other file extensions in the future: pdf, zip…

    An image with a resolution of 3328×4992 and a volume of 2.3 MB is compressed to 1707×2560 and a volume of 790 KB.

    Thanks in advance!

    • This topic was modified 1 day, 16 hours ago by mrcinelab.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • WooCommerce is probably not “damaging” the original upload. WordPress creates resized image variants automatically, and many themes/plugins display one of those generated sizes instead of the original file.

    Check this in order:

    1. In Media Library, open the attachment and confirm whether the original file still exists at full resolution.
    2. Check Settings → Media for max image dimensions.
    3. Check whether an image optimization plugin is resizing/compressing uploads.
    4. For downloadable products, do not use the product image as the protected download file. Add the original file under Product data → Downloadable files.
    5. For PDFs/ZIPs, upload through the downloadable file field or store outside the media library if you need stricter file handling.

    The product/gallery image and the paid downloadable asset should be treated as two different files.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for pointing that out.

    WooCommerce itself does not modify image quality during upload. However, WordPress does generate additional image sizes automatically, and depending on the configuration on the site, the uploaded image may appear with a different resolution or file size.

    To help prevent this issue, you can use custom code or a third-party plugin to disable automatic image scaling/compression.

    I found the following WordPress.org forum thread that includes a code snippet you can try to preserve the original uploaded image size:

    https://wordpress.org/support/topic/how-can-i-stop-wordpress-from-compressing-images-automatically/#post-17035921

    Regarding storing files outside the Media Library, WooCommerce core does not include a built-in option to upload product files to a separate location outside the standard WordPress Media Library.

    By default, downloadable product files such as PDF or ZIP files are managed through the Media Library or by providing an external file URL. For more details oyu can use this guide: https://woocommerce.com/document/digital-downloadable-product-handling/#setup-and-configuration

    If you need advanced file storage or custom file management outside the Media Library, that would require a custom solution or a third-party plugin, which falls outside the scope of WooCommerce core support. For more in-depth support or want to consider professional assistance for customization, I can recommend WooExperts and Codeable.io as options for getting professional help.

    Alternatively, you can also ask your development questions in the  WooCommerce Community Slack as custom code falls outside our usual scope of support.



    One extra clarification that may help separate the two issues:

    If the problem is the product image looking lower quality on the product page, check which generated image size the theme is rendering and whether srcset is selecting a smaller variant. In that case the fix is usually image-size/theme/display related, not the downloadable-file setup.

    If the problem is the paid file itself losing quality, treat it separately from the product/gallery image. Upload the original file as the downloadable file, or use an external/protected URL for the actual asset if the file needs to remain untouched.

    So I would first confirm which file is affected:

    1. the display image shown on the product page
    2. the original file in Media Library
    3. the actual file delivered after purchase

    Those are three different paths and should not be debugged as one issue.

    Thread Starter mrcinelab

    (@mrcinelab)

    Thanks everyone!
    I solved the problem this way: I wrote a small mcf.php plugin. I placed it in the wp-content/plugins/ folder on the server and activated it in the admin panel. Everything works: if WooCommerce loads a product, the images don’t change at all. The plugin’s text: https://artonic.ru/plagin-dlya-otmeny-izmenenij-izobrazheniya/

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the update and solution with us! I’m glad to hear you were able to resolve the issue.

    Creating a small custom plugin to prevent WooCommerce from modifying the uploaded product images is a good approach, especially if it matches your workflow and image quality requirements.

    I also appreciate you sharing the plugin example and explanation it may help other users facing a similar issue.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.