• Resolved nicocaldo

    (@nicocaldo)


    Is there a chance to delete the non-smushed uploaded image after the smush and the generation of the smushed thumbnail?

Viewing 15 replies - 1 through 15 (of 16 total)
  • For now, you can only delete it one by one, I kinda regret for using this plugin to optimize whole 2000 images. And now I don’t even know what to do.
    There’s no option to check all and delete, or check all revert to original.
    You need to do all of them one by one.
    The developer said gonna implement this feature that delete all original images in few weeks, but it has been 1 month with no support.
    Kinda sad.

    Thread Starter nicocaldo

    (@nicocaldo)

    Do you know if the original images have some sort of extensions/name that univocally identify them?

    Maybe we can launch an SSH command to delete them in bulk

    Well, just tried it, do it on your risk though.
    You can go to the upload folder page and find ur original files with unsmushed.jpg
    This plugin only optimize one image, not include thumbnail, smallersize,etc.

    Thread Starter nicocaldo

    (@nicocaldo)

    From the data, they optimize every image, thumbnails included
    https://prnt.sc/qtcdsf

    Thread Starter nicocaldo

    (@nicocaldo)

    I’ve just noticed that from the code of the plugin there’s an option

    $force_keep_original = TRUE

    maybe setting it to FALSE it would delete the original image

    Thread Starter nicocaldo

    (@nicocaldo)

    I’ve just checked the code and it seems that $force_keep_original = TRUE is used by the plugin to calculate the % and the kb saved thanks to the compression

    Setting $force_keep_original = FALSE the plugin delete the original image but, it’s no more able to calculate the % and kb saved

    I think the best solution to implement is to delete the original after the calculations

    There’s a function on the code saying

    /**
    * 
    * Delete also -unsmushed file (ie. Original file) when deleting an attachment
    *
    * @param int postID
    * @return none
    */
    function resmushit_delete_attachment($postid) {
    	reSmushit::deleteOriginalFile($postid);
    }
    add_action( 'delete_attachment', 'resmushit_delete_attachment' );

    maybe it can be used after the smush calculation to delete the original

    I won’t mess with the code, and make everything on the site broken.
    Just try to upload 2 images, and optimize them, check your upload folders, only the general one got optimized and the original backed up as unsmushed name. That statistics is bullshit for saying optimizing all images.

    Plugin Contributor reSmush.it

    (@resmushit)

    Hi guys,

    We’re still working on it, please be patient ??
    We recommend not to hack the module, as it may introduce unwilled behavior, and can be dangerous for your media library.

    @lucius100 : the statistics module isn’t very explicit right now, we’re planning to make it more “interesting”, but we have higher priority features to deliver before ??

    Cheers,
    Charles

    Thread Starter nicocaldo

    (@nicocaldo)

    So, do you confirm that the plugin doesn’t Amish the thumbnails but only the image uploaded?

    pls work on features to revert all images to original and delete all bckup/unsmushed/smushed images.
    I think we only need these features.

    Plugin Contributor reSmush.it

    (@resmushit)

    it’s planned ! keep posted ??

    Cheers,
    Charles

    Thread Starter nicocaldo

    (@nicocaldo)

    What about the smush of the thumbnails?

    Plugin Contributor reSmush.it

    (@resmushit)

    Can you enlighten me @nicocaldo, what are you waiting for about thumbnails ?

    Currently, both original & thumbnails sizes are optimized by the plugin.

    Thread Starter nicocaldo

    (@nicocaldo)

    That what I was asking
    Thanks

    Hi,

    Can I ask if there is a timeline for release for this feature? Looking back at old issues it seems like this has ‘been in the works’ for over a year

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Delete original image after smush’ is closed to new replies.