• site home
  • blog home
  • galleries
  • contact
  • underwater
  • the bleeding edge

the last word

Photography meets digital computer technology. Photography wins -- most of the time.

You are here: Home / The Last Word / Camera resolution and 4K viewing — downsampling algorithms

Camera resolution and 4K viewing — downsampling algorithms

October 16, 2019 JimK 14 Comments

This is the fifth in a series of posts on the effect of camera resolution on the quality of downsampled images. The series starts here.

In the first post in this series, I used Lightroom to process images of a Siemens Star, in an attempt to find out how well the superior image quality of a high resolution camera translated to images viewed on a 4k monitor. Now I’m going to show you how the images look with other downsampling algorithms than the Lightroom export one. To review, I started out with images made with the 12 megapixel Sony a7S and the 61 MP a7RIV, both using the Zeiss Otus 55 mm f/1.4 lens.

Here are tight crops of the two images using Lightroom’s enhanced detail demosaicing. Be sure to look at these images with your browser set to 100%, or else you’ll be looking at your browser’s resampling.

a7RIV Enhance Details crop from full frame

 

a7S Enhance Details crop from full frame

Now we’ll look at tight crops from 4K images made from the above using various algorithms for downsampling.

First up, Lanczos, which is pretty much the gold standard for downsampling. I used QImage Ultimate 2020 with these Lanczos settings:

a7RIV Enhance Details crop from QImage Lanczos resize to 4K

 

 

a7S Enhance Details crop from QImage Lanczos resize to 4K

The downsampling has introduced significant aliasing into the a7RIV image, but is comewhat crisper than the a7S crop.

How about our old friend bicubic?

a7RIV Enhance Details crop from QImage BiCubic resize to 4K

 

a7S Enhance Details crop from QImage BiCubic resize to 4K

The aliasing in the a7RIV image has gotten better, but the image is on the whole softer. The a7S image is softer yet, but less aliased.

Now QImage’s default algorithm, which they call Fusion.

a7RIV Enhance Details crop from QImage Fusion resize to 4K

 

 

a7S Enhance Details crop from QImage Fusion resize to 4K

Fusion does indeed appear to be a decent compromise, but the results are quite close to Lanczos. There are artifacts at the lower spatial frequencies away from the center. These are less apparent with Fusion than with Lanczos.

 

 

The Last Word

← Camera resolution and 4K viewing — real world images 2 Camera resolution and 4K viewing — natural images, QImage downsampling →

Comments

  1. Den says

    October 17, 2019 at 12:17 am

    It would be good to also compare bicubic but with staggered downsampling – 10% at a time – I ‘ve read this makes significant improvement to aliasing reduction, rather than a one stop reduction.

    Reply
    • JimK says

      October 17, 2019 at 7:05 am

      I’ve tried that before, but found Lanczos to be better.

      Reply
  2. Ilya Zakharevich says

    October 17, 2019 at 4:49 am

    Jim, I do not know what happens with your images. I just downloaded the JPEG, then run
       convert DSC4914-enhanced.jpg -resize 40% DSC4914-Siemens-resized.jpg
       convert DSC4914-enhanced.jpg -resize 40% -resize 250% DSC4914-Siemens-resized-back.jpg
    (this is from ImageMagick). Both obtained images HAVE NO ARTIFACTS WHATSOEVER — and are much sharper than what you provide…

    Reply
    • Ilya Zakharevich says

      October 17, 2019 at 5:04 am

      Maybe I know part of the problems: WE DO NOT SEE WHAT YOU EXPECT US TO SEE!

      For example, your image(s) are 966×1000 — but my browser shows them much smaller than this. Since we have no control over the scaling used by the browser, this rescaling-in-browser causes TONS of artifacts (on both browsers I tried: FF v55, and Chrome in a large-screen Android).

      I think ALL the nice stuff you show us is very often ruined by the browsers…

      Reply
      • JimK says

        October 17, 2019 at 7:02 am

        In the past, I’ve suggested viewing the images at 1:1. I neglected to do that this time. I will make the change.

        Reply
        • Ilya Zakharevich says

          October 18, 2019 at 1:40 am

          This would be better indeed (but in Chrome on Android I have no clue how to show an image at 100%).

          On the other hand, I just downloaded your QImageLanczos4914-Enhanced.jpg and compared it with what ImageMagick resizing to 40% does (as above). ImageMagick produced 397×400 image. It is TWICE as sharp as your Lanczos result.

          I’m completely lost… I put the result to
             http://ilyaz.org/software/tmp/DSC4914-Siemens-resized.jpg
          (Again, it is a 40% resize of DSC4914-Enhanced.jpg with default parameters.)

          Reply
          • Bruce Oudekerk says

            October 18, 2019 at 11:26 pm

            To the best of my knowledge there is NO Android browser that displays bitmaps in any civilized manor. I’ve brought up the subject a few times on DPReview and I think it is just unnoticed or ignored but it drives me nuts. For years I’ve struggled to get my 900 pixel high PBase images to fill ANY Android phone or Android tablet screen properly and they are often too small or flow off the page depending on screen orientation and the whim of the computer gods. No setting works uniformly and no browser helps. There appears to be a very limited family of fundamental Android browser code and they all displaying images imporperly. There are two issues here. Most germane is the concept of 1:1 image display on a phone or tablet is contrary to the concept of universal OS screen scalability and Android treats this as an ignored non-issue. And elegant universal ‘fit to screen’ in both a horizontal and vertical oriented screen is also seemingly Android unobtainable, for whatever reason. I haven’t checked but doubt that’s changed recently. (iOS works scaling-wise even from early days but of course this behind the scenes scaling is inappropriate for our 1:1 purposes here.)

            Things tend to get better in Microsoft land. However my 2 older Win 10 MS Surfaces can easily confuse apps like Adobe Bridge from a pixel dimension vs. screen-res standpoint and insanity ensues (off topic but I’m venting). In addition, on my Surfaces, browsers don’t display ‘100%’ properly…maybe. Specifically, one of my surface displays images that are approximately 100% image pixel to display pixel accurate at a browser setting of 70%. ??? Fortunately 1:1 viewing is NEVER a problem on any of my MS desktops no matter the OS version or browser and I wait until I get home to view Jim’s example details on my workstations.

            My point here is to reinforce that lack of 100% (ie 1:1) screen viewing makes critical pixel level viewing of images problematic yet many or most are not even aware they even have an issue. …and Android is not helping.

            Reply
  3. Mike says

    October 17, 2019 at 11:28 pm

    Have you tried something like spline36resize

    Reply
  4. Shy says

    October 18, 2019 at 3:51 am

    You’re wasting your time with all those senseless interpolation methods. 2-lobe Hanning gives the best result in any situation (and no, Lanczos is never better than Hanning). No ugly “halos” or other artifacts, and the best compromise between aliasing and sharpness.

    Using the low quality jpg you posted as a source is not ideal, but anyway:
    https://musepack.net/pictures/star-imagew_hanning2.jpg
    Output from ImageWorsener. Filter “hanning2”. Downsampled x0.25, upsampled x4.

    Reply
    • JimK says

      October 18, 2019 at 8:42 am

      Is there a fairly-commonly used tool that implements 2-lobe Hanning? Not something like Imagemagick. I’m only interested in using tools that a large number of people actually preparing images for 4K presentation would be likely to use.

      Reply
      • Shy says

        October 18, 2019 at 9:31 am

        Unfortunately, I believe there isn’t. Most programs don’t even have gamma correction, with resampling in a linear color space, and most that do, have a poor implementation. IW and IM do it properly. GIMP does too, but they only have low quality bicubic, and the “NoHalo” and “LoHalo” algorithms are problematic and ruin sharpness.

        Adobe prefers lousy interpolation with a ton of artifacts, and the only sane interpolation they give you is low quality bicubic. Almost everyone else also just throws poor quality algorithms into their software, without knowing enough at all about image interpolation. Those people never did any real tests, they just repeat the mistakes of countless others, with some minor variations. So because so few software authors know what they’re doing, people don’t even have access to proper image processing like “resizing” in their…image processing software… Of course, that includes various commercial programs like Qimage Ultimate and Gigapixel, all of which are nonsense.

        Reply
  5. Shy says

    October 18, 2019 at 6:39 am

    By the way, I was only talking about downscaling. Upscaling is a completely different matter. The previous image was upscaled using the same algorithm I used for downscaling (Hanning), but that’s of course far from ideal if you want to decrease aliasing. There are several ways to upscale with minimal artifacts while decreasing aliasing, but by far the best available algorithm for this is NGU Soft, as implemented in madvr.

    Original downscaled file (filter “hanning2” in ImageWorsener):
    https://musepack.net/pictures/star-downscaled.png

    Note: It’s not actually x0.25, I set the size for the star’s size to match the other images that were posted, which have more content at the edges.

    Downsampled image upscaled using NGU Soft in madvr:
    https://musepack.net/pictures/star-upscaled.jpg

    Settings: madvr “chroma upscaling” set to NGU Soft “very high quality”. madvr “image upscaling” settings: luma doubling: very high ; luma quadrupling: disabled ; chroma: very high ; doubling: … only if any upscaling is needed.

    Reply
  6. Hans says

    October 23, 2019 at 7:32 am

    right cklick in your browser on the image – “show images/grafic ”
    then you see a “plus” (mouse over) click again on the image and the image is shown “100%”

    or better download it and show parallel two or more images with XNVIEW or IRFANVIEW.
    Both are much better than QIMAGE and have some better functions than many other
    pay software.

    — > Important !!

    By default, Firefox will try to color manage tagged images (JPEGs and PNGs). You can review and experiment with the following preferences to see whether one of them is causing the problem:

    (1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

    (2) In the search box above the list, type or paste gfx.c and pause while the list is filtered

    gfx.color_management.mode – governs application of color management to images

    0 = off 1 = on for ALL images 2 = on for TAGGED images (default)

    I can’t recall whether you need to quit/restart Firefox before this change, or changes to the below preferences, takes effect.

    I think the following are only relevant if you have profiled your monitor (e.g., pro photographer).

    gfx.color_management.display_profile – if you have created a custom monitor profile and Firefox is not using it, you can enter the path to it here.

    gfx.color_management.enablev4 – double-click to toggle to true if your custom monitor profile is an ICC v4 profile

    gfx.color_management.rendering_intent – whether Firefox honors or overrides the intent flag in the ICC profile, by default, overrides to Perceptual

    For details, see: https://developer.mozilla.org/Firefox/Releases/3.5/ICC_color_correction_in_Firefox

    Reply
  7. info says

    November 4, 2019 at 1:47 pm

    You are touching on some dangerous ground here ?? Discussions on the perfect downsizing method are just as contentious (and vigorously argued) as those around the perfect demosaicing algorithm.

    Reply

Leave a Reply Cancel reply

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

May 2025
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
« Apr    

Articles

  • About
    • Patents and papers about color
    • Who am I?
  • How to…
    • Backing up photographic images
    • How to change email providers
    • How to shoot slanted edge images for me
  • Lens screening testing
    • Equipment and Software
    • Examples
      • Bad and OK 200-600 at 600
      • Excellent 180-400 zoom
      • Fair 14-30mm zoom
      • Good 100-200 mm MF zoom
      • Good 100-400 zoom
      • Good 100mm lens on P1 P45+
      • Good 120mm MF lens
      • Good 18mm FF lens
      • Good 24-105 mm FF lens
      • Good 24-70 FF zoom
      • Good 35 mm FF lens
      • Good 35-70 MF lens
      • Good 60 mm lens on IQ3-100
      • Good 63 mm MF lens
      • Good 65 mm FF lens
      • Good 85 mm FF lens
      • Good and bad 25mm FF lenses
      • Good zoom at 24 mm
      • Marginal 18mm lens
      • Marginal 35mm FF lens
      • Mildly problematic 55 mm FF lens
      • OK 16-35mm zoom
      • OK 60mm lens on P1 P45+
      • OK Sony 600mm f/4
      • Pretty good 16-35 FF zoom
      • Pretty good 90mm FF lens
      • Problematic 400 mm FF lens
      • Tilted 20 mm f/1.8 FF lens
      • Tilted 30 mm MF lens
      • Tilted 50 mm FF lens
      • Two 15mm FF lenses
    • Found a problem – now what?
    • Goals for this test
    • Minimum target distances
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Printable Siemens Star targets
    • Target size on sensor
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Test instructions — postproduction
    • Test instructions — reading the images
    • Test instructions – capture
    • Theory of the test
    • What’s wrong with conventional lens screening?
  • Previsualization heresy
  • Privacy Policy
  • Recommended photographic web sites
  • Using in-camera histograms for ETTR
    • Acknowledgments
    • Why ETTR?
    • Normal in-camera histograms
    • Image processing for in-camera histograms
    • Making the in-camera histogram closely represent the raw histogram
    • Shortcuts to UniWB
    • Preparing for monitor-based UniWB
    • A one-step UniWB procedure
    • The math behind the one-step method
    • Iteration using Newton’s Method

Category List

Recent Comments

  • JimK on Goldilocks and the three flashes
  • DC Wedding Photographer on Goldilocks and the three flashes
  • Wedding Photographer in DC on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • JimK on Fujifilm GFX 100S II precision
  • Renjie Zhu on Fujifilm GFX 100S II precision
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • Ivo de Man on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • Ivo de Man on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF

Archives

Copyright © 2025 · Daily Dish Pro On Genesis Framework · WordPress · Log in

Unless otherwise noted, all images copyright Jim Kasson.