• Hi,

    I’m a developer currently working with an inherited site. About 220,000 images uploaded at 4000-8000px wide.

    Imsanity is a good way to block this happening moving forward, but I’d love to use the same toolkit to go back through and tidy things up.

    At the moment, the only option is a 250-image per pageload bulk-change option; that’s cool, but about 1000 pageloads on this site!

    I’d love a wp-cli community package for Imsanity, so I could run this from the command line; saving a bunch of time and (in the future) perhaps forming part of our deployment solution.

    Anyone keen to pick this up? I’d be a keen beta tester.

    https://www.ads-software.com/plugins/imsanity/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could if you like go into the imsanity code and just change the setting at the top “IMSANITY_AJAX_MAX_RECORDS” from 250 to any higher number. It might cause the browser to hang at some upper limit – 250 is just a conservative limit. But I think several thousand would be possible.

    I agree though a command-line utility would be the nice. If it’s purely disk space, then imagemagick can do that already, but it won’t update the wordpress “quota” amount unfortunately.

    Thread Starter indietravel

    (@indietravel)

    Thanks Jason, yes — I had a play around with that setting, but browser vs slow internet was an issue and caused some timeouts that the terminal would probably avoid.

    The tie-in with imagemagick + WordPress and the reliability of Imsanity is a definite plus. Do consider a wp cli add-on. It’d open this tool up to a bunch of developers; and when taking on existing projects that’s a huge bonus.

    Thanks for all your work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WISHLIST: Command line / wp-cli integration’ is closed to new replies.