• Resolved sebastienpage

    (@sebastienpage)


    Hello,

    The plugin seems to generate 12 additional thumbnails for every new image that is added to the library. Is there a way somehow to reduce that number?

    This is especially important to us because we manage a large site with a very large image library (well over 60,000). The use of the plugin has also created a noticeable slow down in image upload time, or just image management in general.

    This said, this is a great plugin so I want to take advance of this occasion to thank you for your hard work.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • This is also a problem for me but for another reason. We use responsive images and this plugin generates odd cropped images that are showing up in our srcset.

    • This reply was modified 7 years, 10 months ago by greenzilla. Reason: Removed unnecessary snark about Apple

    This will remove the registered image sizes created by the plugin. Be aware, it may cause issues with what is generated for Apple News. However, I am still seeing images in Apple News using this bit of code.

    function wp_loaded_callback(){
    	global $_wp_additional_image_sizes;
    	foreach($_wp_additional_image_sizes as $k => $v){
    		if(stristr($k, 'apple_news'))
    			remove_image_size($k);
    	}
    }
    add_action('wp_loaded', 'wp_loaded_callback');
    Thread Starter sebastienpage

    (@sebastienpage)

    What kind of issue are you seeing using this bit of code?

    @sebastienpage

    we manage a large site with a very large image library (well over 60,000).

    If you are not already, we upload images into year/month/day directories. We upload about 50k images a year. This directory structure helped a bit. It did cause issues with xmlrpc uploads though and I don’t remember what the actual issue or fix was.

    function upload_dir_filter($uploads){
    	$day = date('d');
    	$uploads['path']	.= '/' . $day;
    	$uploads['url']		.= '/' . $day;
    	$uploads['subdir']	.= '/' . $day;
    	return $uploads;
    }
    add_filter('upload_dir', 'upload_dir_filter');

    @sebastienpage

    What kind of issue are you seeing using this bit of code?

    I’m not actually seeing any issues. Images are showing up in Apple News. I know the plugin is using an array of images sizes to do things and that array still exists with this code in place; the image sizes are simply just not registered in Wordpess with this bit of code. So, CHEERS TO THE DEVELOPER for writing clean code that we could actually adjust functionality with an action! Just keep in mind to remove this with any updates ??

    Plugin Author Kevin Fodness

    (@kevinfodness)

    We’ve got a GitHub issue that we’re using to track progress against this here: https://github.com/alleyinteractive/apple-news/issues/339

    I’m going to close this issue in favor of keeping discussion around the feature in GitHub.

    Our overall approach here is going to be to have users turn on Cover Art support, which will generate the additional image crops. I’ll also leave a note about srcset issues.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Too many thumbnail sizes’ is closed to new replies.