Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#12110 closed feature request (wontfix)

Media Settings Option

Reported by: unsalkorkmaz's profile unsalkorkmaz Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.1
Component: Media Keywords:
Focuses: Cc:


I dont need Medium size and Full size of an image. Just Thumbnail size and Large size will enough for me. But there is no option to remove Medium and Full size. Or is there any way to remove those sizes?

Change History (11)

#1 @markmcwilliams
14 years ago

  • Component changed from General to Media
  • Milestone changed from Future Release to 3.1

If you don't need those options, then you just don't use them, I don't see much of a problem here and adding an option isn't really going to achieve much! - But I do believe the Media UI will be undergoing work in 3.1 so we'll move it to that milestone, and go from there!

#2 @unsalkorkmaz
14 years ago

problem is.. there will be tons of picture per post and tons of posts in a wpmu system in my project.
example: 40 photos per post. 100 posts per blog. 1000 blogs.
this means really lots of image upload and if you dont need Medium size or Full Size.. this is really just wasting host disk space.

#3 @unsalkorkmaz
14 years ago

  • Milestone changed from 3.1 to Future Release

#4 @markmcwilliams
14 years ago

  • Resolution set to invalid
  • Status changed from new to closed

I think you'll find only 1 copy of the image is uploaded, those are just options of how you'd like to display it within the particular post!

#5 @markmcwilliams
14 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

Woops, I'll let someone else close it if they like, but I see no problem!

#6 follow-up: @nacin
14 years ago

  • Milestone changed from Future Release to 3.1

Replying to markmcwilliams:

I think you'll find only 1 copy of the image is uploaded, those are just options of how you'd like to display it within the particular post!

That's incorrect.

You should be able to use the intermediate_image_sizes filter to unregister the sizes. Additionally, for the options in the media UI, you can look into the attachment_fields_to_edit filter as well as functions attached to that filter (wp-admin/includes/media.php).

Moving to 3.1 as the media UI is likely to be tackled there, though since the filters should be there now as it is, I'm not sure the ticket needs to remain open.

#7 in reply to: ↑ 6 @markmcwilliams
14 years ago

Replying to nacin:

That's incorrect.

It was correct for the way I'd setup mine, which was to set the Medium/Large Size to 0, that way nothing is uploaded which I have just double-checked, so therefore when you upload the pictures and I'd guess insert the gallery! - And yes I have triple-checked what files were uploaded, and it's the thumbnail size, and the full size image! :)

#8 @unsalkorkmaz
14 years ago

a photo can be 3MB.
i simply dont need 3MB full size for a website. i cant say ppl "hey go get photoshop, reduce image size" esspecially for lots of photo @ 1 post.

#9 @scribu
14 years ago

  • Resolution set to wontfix
  • Status changed from reopened to closed

unsalkorkmaz, it seems you're trying to do the same things I'm doing on a photo-sharing site of mine.

I've been able to do what you want using a plugin. I might release it at some point.

To prevent WP from generating unneeded image sizes, just paste this code in your theme's functions.php:

function prune_image_sizes($sizes) {

	return $sizes;
add_filter('intermediate_image_sizes', 'prune_image_sizes');

However, this will not delete the original image.

#10 @scribu
14 years ago

  • Milestone 3.1 deleted

#11 @scribu
14 years ago

Also see #8599

Note: See TracTickets for help on using tickets.