• Resolved terryally

    (@terryally)


    I have 11,000 images which resmush.it has nicely optimised. But by making a copy of the original image and storing it on the server, resmush.it is increasing my web storage space.

    Is there a way to stop resmush.it from copying that original file and leaving it on the server?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor reSmush.it

    (@resmushit)

    Hi Terryally,

    Thanks for using our plugin ??
    There’s no way to avoid to have a copy of the original image. It’s a kind of backup if you optimize your pictures with a too low quality factor, it allows you to restore your pictures in this case.
    Anyway, if you really want to delete these original pictures, you can, by manually deleting *-unsmushed.(jpg|jpeg|png|gif) files

    Hope it helped !

    Cheers,
    Charles
    PS : If you liked our plugin, please rate it ??

    Hi @resmushit,
    You should add that on / off option. Some admin web don’t need backup they image.

    Hi @terryally,
    I found that code to disable unsmushed copy but you need edit plugin. It will gone when you update plugin.

    wp-content/plugins/resmushit-image-optimizer/classes/resmushit.class.php
    In function optimize(), you can comment this code in line 71-> 75.

    if($is_original){
    	$originalFile = pathinfo($file_path);
    	$newPath = $originalFile['dirname'] . '/' . $originalFile['filename'] . '-unsmushed.' . $originalFile['extension'];
    	copy($file_path, $newPath);
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I stop plugin making and storing a copy of unsmushed image’ is closed to new replies.