• Resolved mgurtzweiler

    (@mgurtzweiler)


    Does anyone have a strategy for dealing with all of the cropped- and duplicate media items the Web Stories editor creates?

    We are a high-volume publisher and all of the resized/cropped media items are making our editors lives difficult. I’m looking for some way to filter out these images when editors search for media to include in normal posts, but wordpress’s media support is quite basic and no plugin’s seem to support sorting / filtering by file size or terms (“keyword -cropped” for instance).

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @mgurtzweiler thanks for getting in touch. You can filter by a search phrase in the insert tab on the media section as you can see here. This would be the best way to filter through your images. In this scenario you would have to have named your media appropriately or know the names of the images to search for them.

    Is this the type of filtering you were looking for?

    @mgurtzweiler Just to add to this that when uploading a poster image, it needs to meet certain dimensions otherwise you will be asked to crop that image. This may be why you have several copies of the same image.

    The suggested size to upload these images as is 640 by 853 pixels which is stated when uploading the media.

    If you wish to hide cropped versions of images from the library, this would need to be done by a developer for the site and falls out of the scope of the plugin support.

    If I am misunderstanding the question here then please do let me know and if you could provide some more information then that would be helpful such as screenshots.

    Thread Starter mgurtzweiler

    (@mgurtzweiler)

    Thanks, no you get the gist of my question. We create web stories from exiting posts, so we end up with “cropped-<old name>” in the library.

    Seems like not a big deal until you’re dealing with 1000s of images a month. It doesn’t help that WordPress media search is pretty poor, not being able to filter by size, aspect ratio, etc.

    Are there any hooks available when an image is resized or cropped by the plugin? We track image attribution information in custom fields so we can keep the copyright trolls away and being able to set that information when an existing image is cropped would also be a big help.

    Plugin Author Pascal Birchler

    (@swissspidy)

    That’s a great question.

    The image cropping is all done by WordPress, see wp_ajax_crop_image(). There are some hooks like wp_ajax_crop_image_pre_save wp_ajax_cropped_attachment_metadata that could be used to copy over attachment metadata.

    Thread Starter mgurtzweiler

    (@mgurtzweiler)

    Thanks I found that yesterday!

    I’m using that plus the ajax_query_attachments_args hook to filter out images created by our Web Stories creators from the web content authors and editors.

    @mgurtzweiler Thanks for letting us know and glad you found a solution for that!

    @mgurtzweiler Since there hasn’t been any further response this topic will be marked as resolved. Please feel free to reach out in a new topic for any other support. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Media Management Help’ is closed to new replies.