Registers a new image size. This means that WordPress will create a copy of the Featured Image (formerly known as post thumbnail) with the specified dimensions when you upload a new image.

learn more… | top users | synonyms

0
votes
0answers
3 views

Define size for `get_post_gallery_images`, they seem to have been resized to 150x150

I'm using get_post_gallery_images and it's spitting images out as 150x150. It doesn't look like it takes a size parameter, so I assumed it would just spit out the largest image or preferably one of my ...
0
votes
1answer
22 views

How to get cropped thumbnail source for custom post type

I need thumbnail image url with size 148*148px. I using custom post type for testimonials. I need just the image source like http://example.com/demoimage.jpg. It is possible to get cropped image ...
5
votes
4answers
204 views

Add image size if page template

I'm building a members website with WordPress Multisite. Is it possible to restrict how many images are being generated depending on the selected template? I have tried the following lines of code ...
0
votes
0answers
12 views

Defined image size not being used when dynamically loading images

I'm using an add_image_size(); of 70x70, in a custom theme. During an ajax request I load a template_part(); with the defined image size, locally all of these images load fine and at the correct ...
0
votes
3answers
5k views

Thumbnail Cropping with add_image_size?

I want my thumbnails on a particular page to be 300px × 100px, exactly. Currently, images shrink until they hit the 300 pixel or 100 pixel mark. How do I get the image to crop to exactly 300 ...
0
votes
1answer
16 views

Getting custom size image URL

I added custom image size like below. add_image_size( 'team-member', 220, 220, true ); I can get this image like below in the post. the_post_thumbnail( 'team-member' ); But how can I get image ...
5
votes
6answers
2k views

How to generate thumbnails when needed only?

I have 1000 images. How can i make wordpress to generate thumb only when needed. For example home slider will only use 10 images i dont want the other 1000 images have that thumbnail generated as its ...
0
votes
2answers
339 views

Add_image_size not cropping

I want to make a crop on the images of my blog page that have more than 443px adjust it to 645x443 size, exactly. I used this code: add_theme_support ('post-thumbnails'); add_image_size ...
1
vote
1answer
18 views

Large image size stuck on old value, even for new images

I changed the 'Large' image size in Settings > Media > Image Sizes from the default to max-width 586px. That was wrong, so I changed it back to max-width 1024px. However, the smaller size seems to ...
1
vote
2answers
330 views

Rotating image does not work for custom image sizes

When rotating an image with the WordPress image editor it creates new images and renames all of the images for the thumbnail, medium and large image sizes that are default for WordPress. My problem ...
0
votes
0answers
7 views

How can i resize/force every uploaded post image width to be 460 [duplicate]

How do I resize every uploaded post image to be always 460 width by whatever corresponding height?
1
vote
1answer
56 views

Regenerate thumbnails after upload

I have this nice little code coming straight from the Wordpress codex if($_FILES['user_picture']['size'] != 0): if ( ! function_exists( 'wp_handle_upload' ) ) require_once( ABSPATH . ...
2
votes
2answers
418 views

How to set the width and height rule for featured image

I want to know how to make rules to re-size the images for featured image? I am uploading an image in featured image section but it is not cropping the images in exact width and height for all the ...
0
votes
0answers
51 views

Wordpress plugin page database connection not working

I am working on wordpress plugin that has option to upload multiple images from wordpress backend and i a using this http://hayageek.com/examples/jquery/jquery-multiple-file-upload/index.php jquery ...
0
votes
1answer
39 views

How can i specify the size of the image rendered by the_content();?

I can do it manually like this: echo get_the_post_thumbnail($post->ID, 'large'); But how can i set the size of the image rendered by the_content(); to Large too ?
1
vote
0answers
27 views

Is a conditional image creation with add_image_size possible and which would be the best hook? [duplicate]

I try to get the Picturefill solution described here running with the latest Wordpress install. One thing I wonder is the following. Would it be basically possible to only conditionally create image ...
5
votes
1answer
2k views

Set default image sizes in WordPress to hard crop

How do I set the medium and large images sizes in WP to hard crop? In my theme I can set the thumbnail size to hard crop using this: add_theme_support('post-thumbnails'); set_post_thumbnail_size( ...
0
votes
2answers
274 views

wordpress add image size crop function not working in version 3.8

I am using twenty fourteen theme to make another theme most of the files are same including the functions.php file, but the problem I am having is , When I add image size ( with true crop, hard crop ...
0
votes
3answers
80 views

Media Library Image Sizes in Bones theme (add_image_size)

I'd like to create new thumbnail options in Bones and have followed the instructions in the Bones theme Functions.php file. I am expecting therefore that one should be able to choose from the Size ...
6
votes
7answers
607 views

Show two different sized featured images on homepage

I would like to have two different sized featured images on my homepage. I currently have all featured images set to 280x200. I would like to have SOME posts on the home page display a larger ...
0
votes
2answers
27 views

Check if custom thumnail size image has been cropped to the correct dimensions

I'm looking for a way to check if an image has properly created a custom thumbnail size that has been hard cropped. add_image_size( 'homepage-thumb', 1676, 828, true ); $size = "homepage-thumb"; ...
1
vote
1answer
71 views

Wordpress Image Editor doesn't update thumbs specified with `add_image_size()`

The title somewhat explains the issue. I have a template using bones. I am not sure if this matters or not. http://themble.com/bones/ In the functions.php file we add some additional thumbnail size ...
0
votes
0answers
16 views

Resize photo on wordpress [duplicate]

Based on Function add_image_resize in wordpress http://codex.wordpress.org/Function_Reference/add_image_size if i have rule in functions.php like this add_image_size('featured-slider', 940, ...
1
vote
2answers
2k views

How to prevent upload of a multiple sizes of images

on my theme, i found this script add_image_size( 'slider', 464, 249, true ); add_image_size( 'fmenu', 306, 280, true ); add_image_size( 'teamthumb', 138, 207, true ); add_image_size( 'imlink', 286, ...
0
votes
1answer
39 views

cant output grayscaled ive created using add_image_size

I am trying to create a gray scaled image of the image i upload. I have been able to upload the image and create the gray scaled version by using this code: ...
0
votes
1answer
71 views

Only create image size when used in featured image

I'm using a post thumbnail size and I was wondering if there is a way to setup so wordpress only make the thumbnail size when the image I upload is used as the featured image rather than for every ...
0
votes
1answer
28 views

Custom image sizes

I noticed lots of articles on how to add custom sizes for images (media). But how would I be able to add a custom size such as "width:100% and height:auto" this way it will make sure the images are ...
0
votes
1answer
61 views

Update Attached Image Size after Import

So I just exported all the data from one version of site, and imported it into a new version of that site (using the WP Import / Export options). I selected the box to download all attachments as ...
0
votes
0answers
22 views

Custom thumbnail size for each post format [duplicate]

I want to customize each post format his thumbnail without creating many size in all posts, for example: Instead of : add_image_size( "standard-format", $width, $height, true ); add_image_size( ...
2
votes
2answers
90 views

Use image url with add_image_size

I am looking for a way to use an image url with the WordPress function add_image_size, I have already setup an image size called 'custom-thumb' For example, instead of... the_post_thumbnail( ...
1
vote
1answer
99 views

Wordpress Media Library showing wrong preview size?

When uploading new (or existing) images to the media library in Wordpress 3.6.1 the preview generated on the admin page/edit media page (eg. wp-admin/post.php?post=8736&action=edit ) is showing ...
0
votes
0answers
27 views

Always generate thumbnail after sideloading image

I'm sideloading an image into wordpress from youtube. it works fine and the key part of the code is: // sideload it into wordpress (generates various sizes) $thumbid = media_handle_sideload( ...
0
votes
1answer
153 views

Custom caption output for custom image size

I've done a lot of searching and have found out how to customize the img_caption_shortcode oputput. What I can't seem to figure out how to do: Add a specific class to the caption's output if a ...
-1
votes
1answer
389 views

wp_get_attachment_url with specific image_size?

I'm using Woocommerce for a 1800+ product e-shop. Woocommerce comes with a built-in PrettyPhoto lightbox plugin. By default it loads the original Wordpress image size when you click to zoom the image ...
0
votes
0answers
61 views

Image Editor does not affect custom sizes!

Recently working with wordpress 3.5, I came across this patch :http://core.trac.wordpress.org/ticket/19889 ...which solved the problem of custom image sizes defined by my theme not resizing or ...
0
votes
1answer
304 views

image_size_names_choose filter doesn't show

I have created a new image size using the add_image_size(), and I want to have it listed in the media library image size when I insert it. So I have the following code: add_image_size( "grade-image", ...
3
votes
1answer
196 views

Define Wordpress image size in img tag

Is there a way to output a image in a pre-determined size (Ie; using add_image_size) using just the img tag? For example, how can I make sure that the image that is echoed using this tag is the exact ...
0
votes
1answer
31 views

Guaranteed Image Sizes

I am using the following line of code to create a new image size: add_image_size('single-post-image', 600, 370, true); However, this line of code does not guarantee that, the image will be of ...
0
votes
0answers
36 views

Positioning and cropping images

I have creates a custom image size: add_image_size( 'slider-size' , 1050, 500, true ); I am using this as the name would sugest in a slider. Problem I am having is this is a crop of the original ...
1
vote
0answers
100 views

Conditional Image Sizes for Use via Theme Customizer Upload Only

I'm looking for a way to add image sizes that are only generated by uploads happening in the Theme Customizer, any suggestions or direction on how this could be done? I've already worked with the ...
-1
votes
1answer
79 views

How to modify Media Library images DPI [ image quality down to make small in size ] [closed]

I wonder if there any code or hook out there to manage the image DPI, for example when we use photoshop or other image editing software we use export and image quality to 0-100%, now i am looking for ...
1
vote
1answer
347 views

How to get custom image sizes into media uploader dropdown?

I searched net to solve the problem with images size uploaded from media. But not even one worked to me. When I try to insert images from the media into post it does not show my custom image size 608 ...
0
votes
1answer
557 views

add_image_size and add_filter('image_size_names_choose', 'my_custom_image_sizes') not working with wordpress 3.5.2

I'm tearing my hair trying to get additional image sizes appear in the media section when i upload new pictures. It works on older versions of wordpress but i can't get it to work on v 3.5.2 Here's ...
0
votes
1answer
373 views

Add suffix to filename of uploaded images

I registered 3 custom image sizes (Double sized, for retina displays) with add_image_size: thumbnail@2x, medium@2x and large@2x. function retina_image_sizes() { $retina_sizes = array( ...
1
vote
1answer
175 views

Process uploads with phpThumb before generating thumbnails

I was wondering if anyone knew a way (via function, plugin, or another method) of using phpThumb to process an image on upload, and then for Wordpress to generate it's usual image sizes from both the ...
0
votes
5answers
5k views

Woocommerce showing images blurry in description page

I am doing an E-commerce website using Woocommerce plugin. Most of the things working fine with little bit changes. But I am facing a problem regarding images. I have uploaded the image for featured ...
0
votes
1answer
340 views

images not showing despite using add_theme_support('post-thumbnails');

I've got a system for post images where I have a specific category's post thumbnail shown in the header, with a cropped version appearing in the blog #preview, and the full size image appearing in the ...
-1
votes
2answers
307 views

Editing featured image

How can I edit the featured image? Usually I upload the image in media, there is one option which says "use as a featured image". This works fine but the output image is badly cropped. I want to know ...
1
vote
2answers
212 views

Is it a good practice to change media settings on theme activation?

I want to change default image sizes when user activates my theme so that the default medium image width is exactly the width of page content (for pages with sidebar) and the large image size fits ...
1
vote
2answers
211 views

Image rotation fails to regenerate custom sized thumbnail

I'm using custom image dimensions in functions.php like this: add_image_size( 'custom-size-thumbnail', 120, 120, true ); I uploaded some pictures with wrong orientation, so I used "edit" options to ...