• Resolved Hlsg

    (@hlsg)


    Hello,

    This is a feature request: it would be excellent to be able to select separate limits for the pictures uploaded through the “Set featured image” dialog, if possible. On most projects, that’s the only spot where I would like to allow editors to upload anything over 1920w.

    I am aware of the “-noresize” functionality, but, honestly, sometimes that’s too much to ask from some editors.

    Thanks for this awesome plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Hi, that’s a great idea, and something you can now implement with version 2.5 using the imsanity_get_max_width_height filter.
    You can find an example of a similar override from our EWWW IO plugin here:
    https://ewww.io/2016/07/05/changing-the-dimensions-for-resizing-images/

    More on using filters with an introduction at https://ewww.io/2016/03/16/ewww-image-optimizer-filters-part-1/

    Thread Starter Hlsg

    (@hlsg)

    Excellent! Thsi filter is exactly what was needed. I think you should mention in in the plugins description, as, presumalby, a good chunk of your user base will be familiar with filters.

    All that beeing said, are you aware of any method of differentiating between an image uploaded within the post content and one through “set featured image”? $_REQUEST and $_SERVER[‘HTTP_REFERER’] are identical and therefore don’t help.

    Plugin Author nosilver4u

    (@nosilver4u)

    If you’re using the block editor, images uploaded directly in a post often use the Rest API (wp-json/wp/v2/media), whereas featured image uploads use ‘async-upload.php’.
    That said, I don’t know if that is enough to differentiate featured images from anything else, as I don’t see anything very unique about that upload request.
    In particular, if you are editing/adding a post, and then add an image block, choose media library, and then decide to upload a new file, it will look identical to the featured image upload.

    Thread Starter Hlsg

    (@hlsg)

    Sorry for not specifying: not using the block editor and don’t intend to anytime soom. And yeah, I struggle aswell to find any difference between content images and featured images upload.

    I was hoping you woudl have a better idea.

    Anyway, if you don’t, you can close this.

    Thanks!

    Plugin Author nosilver4u

    (@nosilver4u)

    I couldn’t find anything else, but if someone stumbles across this and has any ideas, feel free to chime in!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Feature request] Separate limits for “featured images”’ is closed to new replies.