[wp-hackers] way to remove image sizes?

fris fris at fris.net
Tue Jan 31 19:52:19 UTC 2012


Ahh ok, because I was generating an array of image sizes for insert to post
via the media manager, and it was listing ones I previously made.


-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Braydon
Sent: Tuesday, January 31, 2012 2:21 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] way to remove image sizes?

On 01/31/2012 08:25 AM, fris wrote:
> Just realized after using add_image_size('name',x,y); then removing it 
> later on, its still registered.
It should no longer generate those thumbnails for new images uploaded if
it's not set, however any images that have already been uploaded will still
have the size, since it's already been generated. The plugin Additional
Image Size ( http://wordpress.org/extend/plugins/additional-image-sizes-zui/
) can handle deleting unused image sizes.
>
> Anyway to remove this? Other than deleting it manually from sql?
add_image_size doesn't write to the database (
http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/media.php#L183
)
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list