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

-1
votes
2answers
427 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
1answer
201 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 . ...
1
vote
1answer
188 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 ...
1
vote
1answer
268 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 ...
1
vote
1answer
105 views

add_image_size adds size, but doesn't upload if source resolution is same as resize resolution

I'm trying to add a new image size of 300x300.. This works, but if the uploaded file is for example 300x300, it doesn't upload the resized image.. You'd say that isn't a problem because the original ...
0
votes
1answer
172 views

Trying to set specific image dimensions and crop with ACF

My question is about image sizing. I get how to the sizing/cropping stuff natively in WP add_image_size( 'thumb-crazy', 500,500, true); And then in the template type: if ( has_post_thumbnail() ) { ...
0
votes
1answer
187 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 ...
0
votes
1answer
133 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 ?
0
votes
1answer
144 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
31 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
64 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
866 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
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
1answer
183 views

Custom image sizes ignored in WP 3.5

Since migrating to WP 3.5 I discovered that my custom image sizes get ignored - whenever I try and output one of them WP just defaults to the original image instead. Kind of frustrating... Any idea ...
0
votes
1answer
105 views

Retina ready for uploaded images which are cropped

I used the search but couldn't get the right answer for my issue. I developped a theme, which on the portfolio template take the selected featured image of the different portfolio items and crop them ...
1
vote
0answers
67 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 ...
1
vote
0answers
133 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
vote
0answers
96 views

add_image_size wont work after get_intermediate_image_sizes

I am using the function get_intermediate_image_sizes() to check if an image size already exists, and if not create it. However when I use add_image_size( 'test3', 150, 150, true ); after the ...
0
votes
0answers
9 views

Show custom image size smaller in editor

I have a custom image size which editors should be able to use in their posts. I already managed for the custom size to show up in the add image dialogue, so that part is fine. On the destop version ...
0
votes
0answers
17 views

Retina upload image function

I use this: add_image_size('featured', 500, 100, true); to get an extra image size available in the theme. When I use the retina upload script below, it works fine most of the time. But if I upload ...
0
votes
0answers
48 views

Portrait or Landscape images are not cropped to exact dimensions

I'm using a theme that's registered a new image size of 580x580 that's then resized to 100% width to fit in a column (approx 200px wide) The problem is that an image that is originally 225x600 gets ...
0
votes
0answers
23 views

Generate images according to proportion of original image

I'm looking into if it's possible to generate images with different sizes depending on the proportions of the original image. For example. If the uploaded image has a proportion 4:3 it should ...
0
votes
0answers
18 views

Images sizes generated smaller than specified

So I have an image that's 1536x2048 and I've set up an image size that would hard crop to 460x600 with: add_image_size( 'hard-edge', 460, 600, true ); When this is actually output, I get a file ...
0
votes
0answers
29 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
0answers
109 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 ...