WordPress.org

Ready to get started?Download WordPress

Ideas

An option to have zoom-crop images smaller than custom image size

  1. pixeline
    Member

    12345

    Short story:
    If theme has custom image size bigger than the uploaded image, the image should be upscaled, either according to width or to height (then cropped if crop was asked).

    Long story:
    Things change. In 2005, an image above 640px width was considered high-res. Nowadays, images are at least 800px. Things change, we adapt.

    I recently had this old wordpress site with 5000+ posts to modernize, going from 2.3 to 3.2.1 at the time of writing. In this redesign, we want post thumbnails, and we also want 11 (!) different image sizes. Most of these size have cropping turned on. I ran a plugin that automatically assigned a post thumbnail to each article, using its images attached. Great.

    Unfortunately, the old posts have small image sizes, like 320px width when the set image size is 400px width. And sometimes the best image is not available at the target resolution. I expected the upload script to take my image size as a "must do", not as a "will try to do" and zoom-crop the image so as to produce the 400px width image out of the 320px original...

    Thank you for listening.

    Posted: 2 years ago #
  2. Ihor Vorotnov
    Member

    12345

    Yep, good idea. I faced this on a news site recently launched. Editors started to publish news and include some of them into "Featured" slider which has a 620px wide horizontal image. And if they upload a 400px wide vertical image - you know what happens :(

    Users see a slider with small pic and empty space on both sides, while the div with news title is wider. See what I mean:

    http://d.pr/aJsf

    I'm going to write a hack for default resize routine after uploading file to make it upscale images if their size is smaller. Yes, it will result in loss of quality but it will not break the desing. On grid-based designs it's a must-have feature. I think it should be in core and an options on Media settings page - a checkbox "Allow upscale images".

    Posted: 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    5 Votes
  • Status

    This idea is under consideration