• All of my uploaded photos are 4k resolution, which is obviously not ideal for loading times. I’m basically wondering if there’s a magical solution to use 4k photos in the media library, but dynamically load a smaller scaled / cropped version, without storing it that way in the media library.

    If that’s not possible, what’s the next best solution? Should I use:

    add_theme_support( 'post-thumbnails' );

    And simply define the sizes I would use? I’m using the Genesis framework, and noticed that wasn’t added to the starter theme by default, and wasn’t sure if there was a reason. I’m basically looking to upload 4k photos no matter what, and serve them in the most optimized way (both performance on loading times, and organization in the media library).

    Any information on modern approaches to doing this, what could be coming in core to help this, etc, would be greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The function that you’re looking for is add_image_size().

    Using that you can add in as many cusotm image sizes as you like, and then use those image sizes for display in your sites templates.

    Oh, but as far as showing one that’s generated and not stored on the server… no.

    It may be some time in the future, but I wouldn’t hold my breath. After the issues that everyone using TimThumb faced, that sort of dynamic image re-sizing does spook a whole lot of people now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using 4k Images’ is closed to new replies.