large image size of 1440x1440 not pulling 2x of 2880x2880 image

I have updated the large image size to be 1440px by 1440px on Wordpress, however it only pulls 2048 for the 2x. I have created a 2x size of 2880x2880 and have also updated 2048 to be 2880x2880 however when I do it no longer shows the retina size.

Things I have checked so far: the image is being generated by Wordpress upon upload. I have taken the new large image limit put in place since 5.3 out using the specified filter. I have no lazyload plugins or other plugins that manipulate images apart from the plugin 'regenerate images'

this is all within the standard image block in Wordpress and Gutenberg

I'm at a loss at what else to do.

   // Image threshold removal
   add_filter( 'big_image_size_threshold', '__return_false' );


   /// UPDATE IMAGE SIZES

   //LARGE
   update_option( 'large_size_w', 1440 );
   update_option( 'large_size_h', 1440 );

   //MEDIUM LARGE
   update_option( 'medium_large_size_w', 1350 );
   update_option( 'medium_large_size_h', 1350 );

   //MEDIUM
   update_option('medium_size_w', 675);
   update_option('medium_size_h', 675);

   //THUMBNAIL
   update_option('thumbnail_size_w', 320);
   update_option('thumbnail_size_h', 320);

   //2048x2048 
   add_image_size( '2048x2048', 2880, 2880); 

Topic block-editor retina functions images Wordpress

Category Web


Three things to check:

  1. Have you added add_theme_support('post-thumbnails');?

  2. Is the uploaded image larger than 2880px x 2880px?

  3. Are you already regenerate all the thumbnails, including the existing?.

Referring to the second, if the image is not "suitable" for the size, WordPress won't make the thumbnail, because it can't. For instance, if you upload an image, let's say 1200x600, and you have a thumbnail size that creates an image for 1600px of width, WordPress won't create that thumbnail.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.