What are additional image sizes for?

[ad_1]

Hi @annekee,

Koji uses two image sizes to ensure the images shown on archive pages are not larger than neccessary, since large images result in longer load times and more data use for the visitors. WordPress also includes a number of built-in image sizes that Koji doesn’t control.

You can install a plugin like Disable Media Sizes to modify or remove the image sizes on your WordPress installation.

— Anders

Thanks Anders, is there perhaps another way to do it, a code in functions.php? I see they are:

add_image_size( 'koji_preview_image_low_resolution', 400, 9999, false );
add_image_size( 'koji_preview_image_high_resolution', 800, 9999, false );

@annekee You could use the remove_image_size() function in the functions.php file in a child theme.

Any changes you make directly to the Koji theme files, like removing the two lines you include above, will be overwritten the next time Koji is updated.

Not really there yet. I removed the 400 and 800 sizes but it still adds two additional sizes:

Image uploaded: test.png (1512 x 1922 px)

Image added: test-768×976.png

Image added: test-1208×1536.png

Again: Media Settings are all on zero

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer