9 Comments

  1. fwolf
    · Reply

    So .. this “improvement” is only based on the dimensions of an image, not its actual size (eg. JPEG quality)?

    Then its no real help at all. If it was actually about FILE SIZE detection, now THAT would be an actual improvement, and we’d all be instantly happy campers 😉

    cu, w0lf.

    Report

    • Joseph Dickson
      · Reply

      This is a move in the right direction.

      The only I have a high limit is is to accommodate videos and large PDFs.

      I’d love it if we could be more granular on max file sizes based on file type.

      Report

      • Shane Bishop

        The new feature is based on the dimensions of the uploaded image, not the file size, so videos and PDFs are unaffected.

        Of course, if someone DID need to be more granular for other image types, it’s filterable (big_image_size_threshold), so the feature is infinitely configurable.

        Naturally, reducing the dimensions of an image also tends to reduce the filesize (sometimes drastically), which is a big improvement, regardless of what the wolf thinks 😉

        Report

    • William Bay
      · Reply

      This has more to do with the fact that the img srcset in WordPress feature was limited to a max image size of 1600px, so for Retina and hi resolution screens, often times the browser would automatically pull the unoptimized Original image if it needed something with higher resolution. And since most themes don’t create anything larger than the “Large” size which is 1024 (I think), huge Original images were loaded instead.

      Implementing this fix means that there are additional thumbnails at larger sizes that can be pulled by the browser, and NOT include the Original.

      Believe me, as a photographer, and a developer that works primarily with photographers, this is a feature I realized was necessary shortly after 4.4 came out. If you look in TRAC, I was raising this concern 2+ years ago.

      This is a much needed fix, and I appreciate that Morten, and the Media team are getting this incorporated.

      Report

  2. Nigel Rodgers
    · Reply

    Lossless compression as an admin setting in core might also be helpful.

    Report

  3. Sophea
    · Reply

    Good one, but I’m still looking for the option in the editor to have nofollow attribute for the link. Already asked but got a negative response.

    Right now I need to manually install another plugin to do the job.

    Report

  4. Doug
    · Reply

    While this has nothing to do with size….how about an option to limit the # of images/sizes that are created? I’ve run into plugins and or themes that create their own sizes, and a lot of them don’t show up in the media library area. Then every time an image is uploaded, 10 different sizes are created and in many cases a set of duplicates of the same size.

    Report

    • fwolf
      · Reply

      So far, my personal “fix”, or more like workaround, for this issue, has been to use one of the few available plugins that generate the resp. image sizes “on the fly”, ie. on-demand, when the image is actually called. The obvious disadvantage of that method of corpse is: The user will not instantly get the image shown, it has to be processed first.

      Maybe a mix of both would be more efficent – ie. generate only selected image sizes, eg. thumbnail / medium for previews, and then, when the on-demand call comes, the plugin uses this already existing thumbnail or medium image as a placeholder, until it is done processing the actually requested image size. Something kind of an adaptive image site aproach – although IDK how well this is going to work together with the picture element or the srcset attribute.

      cu, w0lf.

      Report

  5. Lefteris
    · Reply

    So what happens when you upload an image with dimensions or weight above the limits in the policy.xml in ImageMagick?

    Nothing.
    And you don’t get any notification.

    Report

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: