Title: Gallery thumbnails quality
Last modified: August 21, 2016

---

# Gallery thumbnails quality

 *  [daimpa](https://wordpress.org/support/users/daimpa/)
 * (@daimpa)
 * [12 years ago](https://wordpress.org/support/topic/gallery-thumbnails-quality/)
 * Hello,
 * when I insert a gallery of images in my blog, it uses thumbnails of 150*150px,
   as indicated in media settings.
 * The problem is that when I add a gallery to my post, my template sets the width
   of each image at 300px. So the image appears pixeled. So I’d like to know how
   to use, for gallery, medium sized thumbnails (300*300px) instead of small sized
   thumbnails.
 * I’ve used this code and it worked, but now I’ve the problem that I can’t choice
   how many columns I want to use for each gallery, as these are fixed..
 *     ```
       //Adds gallery shortcode defaults of size="medium" and columns="2"
       function amethyst_gallery_atts( $out, $pairs, $atts ) {
   
           $atts = shortcode_atts( array(
               'columns' => '3',
               'size' => 'medium',
                ), $atts );
   
           $out['columns'] = $atts['columns'];
           $out['size'] = $atts['size'];
   
           return $out;
   
       }
       add_filter( 'shortcode_atts_gallery', 'amethyst_gallery_atts', 10, 3 );
       ```
   

The topic ‘Gallery thumbnails quality’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [daimpa](https://wordpress.org/support/users/daimpa/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/gallery-thumbnails-quality/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
