[Smush Pro] Smush imported images via Autoblog plugin

0

I use the Autoblog plugin and my main frustration is that Smush doesn’t seem to recognize when Autoblog uploads images imported from an RSS feed. I’d like to see one of the following solutions:

1. Hook the Autoblog image upload process into Smush so when Autoblog imports an image it is recognized by Smush as an upload and is smushed on upload.

2. Allow Smush to schedule bulk smushes so that all the images imported by Autoblog can be smushed on a regular basis without the need to manually trigger the process.

  • splaquet
    • WordPress Warrior

    i had this same issue. the other issue i had was that SO many images were importing, that i could never keep up on manually smushing them all.

    my solution was to install WP-CLI and set up a smush cron.

    i had to deal with this issue for years, and could not find a solution. finally, a few weeks ago or so, i started using WP-CLI for a massive woocommerce multisite. i had WAY too many actions to perform, that would have taken hours had i done them manually. i used the CLI interface… and those hours turned to an automated few minutes.

    …so then, i was like… hmmm… and voila! hope that works for ya :slight_smile:

  • Adam
    • Support Gorilla

    Hi AtmoVantage

    I hope you’re well today!

    Whether the image will be smushed automatically or not (assuming that smushin on upload is enabled) depends mostly on how the plugin that uploads it is hooking up to the core WP media uploader. There might be cases when this doesn’t actually trigger image optimization.

    A quick and simple workaround for this would be to just enable Smush CDN- images that are included in posts and/or featured images (if the theme is posting them using “img” tags instead of background images) would this way be automatically optimized regardless of whether they were “bulk smushed” or not.

    But I see the point and I can imagine multiple cases when “scheduled bulk smushing” could be very handy. Apart from cases like this, where plugin uploads the image and does not trigger optimization, I can think of, for example, scheduled directory smushing of themes (as often you’d need to run it again and again manually after each theme update).

    A solution suggested by splaquet (thanks!) is also great idea for a workaround for now :slight_smile:

    I have already suggested adding “smushing scheduling” to the plugin to our developers too so they would consider implementing it with one of future releases :slight_smile:

    Best regards,

    Adam