WordPress.org

Forums

image sizes (6 posts)

  1. cybershot
    Member
    Posted 4 years ago #

    Is there a way to remove image sizes from the uploader. I just uploaded an image and it made 7 new images from that one picture. In my functions.php I have this

    set_post_thumbnail_size(183, 91, true );
    	add_image_size('half_slider', 522, 274);
    	add_image_size('page_featured_image', 590, 293);
    	add_image_size('post_featured_image', 183, 91);
    	add_image_size('full_slider', 959, 274);

    those are the only image sizes I need. I don't know why wordpress is creating a whole bunch of new sizes.

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 4 years ago #

    Do the other sizes match those set for Thumbnail, Medium & Large in Settings -> Media?

  3. cybershot
    Member
    Posted 4 years ago #

    I show three image sizes in the uploader

    150x150 small
    300x85 medium
    large does not display the size
    959x274 full size

    yet in the uploads folder, I have

    959x274, 150x150, 183x52, 183x91, 300x85, 522x149, 590x168

    I dont' know why there is 300x85. Where is it being told to generate that size?

  4. As cubecolour said, go into Settings -> Media and under Image Sizes you'll see where the the thumbnail, medium & large sizes are coming from. If you erase the height & widths of the sizes you don't need, WordPress won't auto-generate those sizes.

  5. cybershot
    Member
    Posted 4 years ago #

    okay. I deleted those values and put in 0. It still resizes the image the wrong size. I figured that setting the image size with add_image_size would have set the sizes. There has got to be a way to set the default small medium and large size

  6. Talenthouse
    Member
    Posted 3 years ago #

    other plugins you install may include an add_image_size() call so that the image sizing gets handled by wordpress. The best way I found to identify these was using grepWin (or grep on unix machines) to search the plugins folder for add_image_size. Then you can decide if the plugin is worth keeping, removing or potentially removing the add_image_size() and replacing the eventual get_the_post_thumbnail() call with one that re-sizes on the fly. Remember you are trading processing time for disk space, if you have a lot of traffic the server-side resizing can cause a slow-down.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.