ACF Gallery generating all 40 Jupiter image sizes


#1

Hi,

The images uploaded using the ACF Gallery field are generating all the image sizes defined by Jupiter, these are about 40 extra images.

I found a plugin to select only the sizes you want but when you go to the frontend where the gallery is displayed, all the images are generated again.

Any idea why is this happening?

Thanks in advance.


#2

Hello,

Please create a ticket to check the issue https://themes.artbees.net/new-ticket and provide the page URL the issue persists and share WP Dashboard credentials.

Thank you.
Best regards,
Artbees Support.


#3

Hi,

I can not submit tickets, my support time expired 4 days ago.


#4

After almost dropping jupiter because of this bug, i found a workaround.

Getting rid of all the add_image_size() using remove_image_size() in functions.php

Here is the snippet that i am using and is working fine.

add_action('init', 'remove_junk_image_sizes');
function remove_junk_image_sizes() {
	remove_image_size( 'image-size-150x150' );
	remove_image_size( 'image-size-550x550' );
	remove_image_size( 'image-size-550x550-@2x' );
	remove_image_size( 'photo-album-thumbnail-small' );
	remove_image_size( 'photo-album-thumbnail-square' );
	remove_image_size( 'employees-large' );
	remove_image_size( 'employees-small' );
	remove_image_size( 'blog-magazine-thumbnail' );
	remove_image_size( 'blog-magazine-thumbnail-@2x' );
	remove_image_size( 'woocommerce-recent-carousel'  );
	remove_image_size( 'blog-carousel' );
	remove_image_size( 'blog-carousel-@2x' );
	remove_image_size( 'blog-showcase' );
	remove_image_size( 'blog-showcase-@2x' );
	remove_image_size( 'portfolio-x_x' );
	remove_image_size( 'portfolio-two_x_x' );
	remove_image_size( 'portfolio-four_x_x'  );
	remove_image_size( 'portfolio-x_two_x' );
	remove_image_size( 'portfolio-two_x_two_x' );
	remove_image_size( 'portfolio-three_x_two_x' );
	remove_image_size( 'portfolio-three_x_x' );
	remove_image_size( 'portfolio-four_x_two_x'  );
	remove_image_size( 'portfolio-x_x-@2x' );
	remove_image_size( 'portfolio-two_x_x-@2x'  );
	remove_image_size( 'portfolio-four_x_x-@2x'  );
	remove_image_size( 'portfolio-x_two_x-@2x'  );
	remove_image_size( 'portfolio-two_x_two_x-@2x' );
	remove_image_size( 'portfolio-three_x_x-@2x'  );
	remove_image_size( 'portfolio-three_x_two_x-@2x' );
	remove_image_size( 'portfolio-four_x_two_x-@2x' );
	remove_image_size( 'portfolio-four_x_x-@mobile' );
	remove_image_size( 'portfolio-three_x_x-@mobile' );
	remove_image_size( 'portfolio-three_x_two_x-@mobile' );
	remove_image_size( 'portfolio-four_x_two_x-@mobile' );
	remove_image_size( 'landscape-desktop' );
	remove_image_size( 'landscape-tablet' ); // iPad.
	remove_image_size( 'landscape-mobile' ); // iPhone 6 Plus.
	remove_image_size( 'portrait-desktop' );
	remove_image_size( 'portrait-tablet' ); // iPad.
	remove_image_size( 'portrait-mobile' ); // iPhone 6 Plus.
}