Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When you insert media with the media upload, it will generate images of several sizes according to the media settings. But sometimes I only need thumbnails. Other times I only need medium images. If each post has images that aren't being used, it waste space.

Is it possible to select custom image size to be generated when you open Insert Media?

share|improve this question
    
PS: I mean, for one post, only generate thumbnail, NO medium; for next post, generate thumbnail and medium. –  user32161 Jun 8 '13 at 9:06

1 Answer 1

You can choose the sizes that WordPress automatically generates for images in your Dashboard Settings under Settings > Media, which is located at wp-admin/options-media.php.

Please note: a new image is not created for each post, but instead an <img /> element inserted. Scaled images are generated when you upload the media, not insert it.

In addition, once an image has been inserted using Add Media, you can click the image and then click the edit image icon that appears in the top left of the image. Go to the Advanced tab, and you can set a new size for the image just for that post (a new image will not be generated, it will simply scale the image you selected).

share|improve this answer
    
Thanks for your reply. –  user32161 Jun 8 '13 at 9:03
    
I see your postscript there. I understand what you are thinking now - that a new image file is created for each post. That is not how WordPress works. The files are already there, you are simply linking to them. A new image is not created for each post. –  XIROXAS Jun 8 '13 at 9:48
    
Is it possible to add ON/OFF button on new media page to control functions.php of adding the script by add_image_size( 'medium', 210, 9999 ); –  user32161 Jun 9 '13 at 23:59
    
Okay. Just to clarify - what you are wanting to do is to select what size images are to be generated for each image that you upload independently? –  XIROXAS Jun 10 '13 at 7:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.