WordPress has four built-in image sizes. Uploaded images will automatically be scaled to all these sizes. It is possible to remove these defaults and to add custom image sizes.

learn more… | top users | synonyms

4
votes
1answer
363 views

the_post_thumbnail responsive srcset not populating with custom image size

I am trying to use the new responsive images feature in Wordpress 4.4 but I keep running into a particular problem when trying to use the_post_thumbnail with a custom image size. It seems I cannot ...
1
vote
1answer
12 views

Custom image size / thumbnail - Crop to aspect ratio even when source image is smaller than set dimensions

Normally when you set a custom image size using hard crop - e.g. add_image_size( 'custom-size', 400, 400, true ); - you get the following results: #1 Uploaded image: 600x500 > Thumbnail: 400x400. #2 ...
1
vote
1answer
75 views

Error uploading images (but the images are at the server!)

I have a huge problem with images with a size greater 1MB in my website and I really need some help. If I try to upload an image with a size greater 1MB in my Media Library I get a generic error ...
1
vote
1answer
802 views

How to Delete All regenerated thumbnails but keep the original ones?

I have a WordPress site which used to weight around 350 MBytes. Then I changed the theme and found that I have to regenerate the thumbnails. So I did it, Twice actually, but Now the problem is that ...
1
vote
1answer
299 views

Crop image to horizontal or vertical by code based on image size

my client asked me to create gallery(WP gallery) based on this site. the problem here is that i need to crop images based on image size before inserting the image in the Media library. now i using ...
1
vote
1answer
376 views

Fallback image size when using wp_get_attachment_image_src / full size compressed image

I am using ACF to pull images using ‘wp_get_attachment_image_src’ as such: <?php $image = wp_get_attachment_image_src(get_field('image'), 'large'); ?> <img src="<?php echo $image[0]; ?>...
1
vote
1answer
298 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
57 views

Adding custom image sizes and post types to a plugin or to a theme?

I'm just getting started but want to play around in the right area practicing for a new personal site/theme. Part A: I want to add featured images (and a few new image sizes) to a blog portion of a ...
1
vote
1answer
62 views

Difficulties setting a maximum image width

Currently I have this written in my functions.php: if ( ! isset( $content_width ) ) $content_width = 560; If I understand correct, this should re-size a relatively large image (1024x1024px) to an ...
0
votes
1answer
22 views

Automatically set full size for all my images in all my post and page?

I have near 800 post/page in my site and 3800 images. I actually set Large Size to 600px width but in my new theme i want my image width be 880px. So i would like to switch all my image to Full-Size ...
0
votes
1answer
118 views

How can I set different banner images using background cover at different breakpoints?

I use the following code to see if a featured image exists and set my banner image like so: <?php if ( has_post_thumbnail() ) : $src = wp_get_attachment_image_src( get_post_thumbnail_id($...
0
votes
1answer
114 views

How to replace all images in all posts and pages with a different size?

I'm about to reboot an old blog of mine and therefor I'm creating a new theme from scratch. Before I'd align pictures left and right, because it seemed good. But now I want to make it much cleaner and ...
0
votes
1answer
127 views

wp_get_attachment_image_src() regenerate custom size images everytime

i try to make simple gallery from post's attachment images with custom sizes. i wrote simple loop: $original = array(); $gallery = array(); $gallery_min = array(); $imgs_args = array( '...
0
votes
1answer
24 views

Function the_content

For some reason on my attachment page template (http://capa.furniture/?attachment_id=1494) I am getting the url of the reduced size image. I do not know why. I am not getting the thumbnail full size ...
1
vote
0answers
48 views

Modify 'Sizes' Attribute for Images with Specific Class

I'm ultimately trying to add useful responsive image srcset & sizes attributes to images added in a standard Text Widget. I've found this filter which does allow images to get the default WP ...
1
vote
0answers
45 views

wp_upload_bits Upload Specific Sizes Only

For images uploaded using this code, I want to only upload the full-size image and the thumbnail (whereas for images uploaded through site, I want all sizes). However, I can't figure out how to make ...
1
vote
0answers
220 views

How to make own crop image function for WordPress plugin

I am working on a plugin, in plugin i create an upload meta fields for images to upload one or more images. Its working perfectly and in plugin settings i gave options to users that they set images ...
1
vote
0answers
216 views

Can't generate thumbnail images

Having a very strange problem with this site I recently took over hosted on RackSpace. Seems whenever i upload a new image, it doesn't generate different sizes and I'm trying to get it where it will ...
1
vote
0answers
987 views

Clean up images, delete unused image sizes attached to a post type

I found this post: How do I delete all generated images from my server except those currently used in posts which describes how to delete all image sizes but the original uploaded image file. I need ...
1
vote
0answers
52 views

Scaling an image in a WordPress post

I am currently building a WordPress theme and when I add an image using the add media button, I'm able to choose a scaling percentage to allow the image to get bigger or smaller within the modal pop ...
1
vote
0answers
354 views

“Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine

Please take a look at this cicada photo - http://photo.aseev.com/stock-photo/cicada-exuviae/ - below you will see 5 thumbnails, all of them are squared, except one (a bug on white background). It is ...
1
vote
0answers
36 views

How do you alter the default WordPress thumbnail?

I have selected 'thumbnail' under 'Apply changes to:', however, nothing seems to happen in either the media library or on the site. I've also tried regenerating the images after making changes, but ...
0
votes
0answers
13 views

How can I compress original images?

I sized and cropped images to 945 x 945 prior to uploading. I have a few smaller image sizes that get created and just realized that since wp compresses at a default of 90% quality (fine by me for ...
0
votes
0answers
25 views

Set custom image size for Media Settings via ajax in wp-admin

I want to the user upload image custom size, but I want to possibility to change size via ajax, without go to media settings, I have two types images sizes. 700px for posts 1500px for header When ...
0
votes
0answers
11 views

Query by attachment image size

Is it possible to use WP_Query to get attachment images by pixel size? For example all images with a width of 500px and height of 300px. Or images with a height bigger than 300px. As far as i can ...
0
votes
0answers
43 views

Responsive images for Retina ready images?

WordPress uses Responsive Images from WordPress 4.4 reference I have 1 Question & 1 Issue. ​Question​: Can I Responsive Images feature for retina devices??? -> Is Responsive Images uses the ...
0
votes
0answers
37 views

“image-name.jpg exceeds the maximum upload size for this site.” but image is only 11KB

I was directed to your website by my theme developer but then read that I should not post WordPress support issues, so please forgive me if this is not allowed. If it is, this is my situation. I am ...
0
votes
0answers
36 views

Image rendering on mobile

I helped a friend with a template of a blog recently, and her readers have problems with image quality on mobile devices. Thing is, some are experiencing it, and some not. Is there any way I can fix ...
0
votes
0answers
32 views

Mobile view: big image sizes, when using infinite scroll and loading next posts

My website is set up with a simple blog (http://goo.gl/5nJZOz) and the plugin "Infinite Scroll". The site works responsive: When I change the size of my browser to 799 pixels wide or lesser, the ...
0
votes
0answers
32 views

How to change the image size for pictures uploaded using the Android app?

Is there any way to change the size of the images uploaded using the Android app? The app itself has a setting to resize the picture, however it does affect the max. size uploaded to the server, while ...
0
votes
0answers
15 views

Resizing image styles?

I know that this question may not have a specific answer and questions like this might be considered off topic but I feel it is important to ask. There are currently three solutions I know of for ...
0
votes
0answers
21 views

Scaled images too big for page

I've been managing this real-estate site, http://www.homesbydale.com. The Listings page offers a carousel of photos for each listing. Recently (since July 9, 2015), each individual listing page ...
0
votes
0answers
15 views

Need advice for uploading images and generating sizes

I would like some advice on creating a image upload system(this maybe a plugin or a script on a page, it doesn't matter). I have a image site were each image is an post. I want to be able to upload ...
0
votes
0answers
126 views

Essential Grid- ignoring Set Image Source Type

I am setting this value for the 'Set Image Source Type' And I have this in my functions: add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 370, 277 ); add_image_size( 'mnd-size', ...
0
votes
0answers
23 views

Compress full-size image into a separate custom size

I need to have a custom image size (or else) with the same resolution as the original uploaded image, with a jpeg quality of 60. The reason behind this is because the images must be shown sometimes in ...
0
votes
0answers
64 views

Minimum Image Dimension not apply to every image

I found a way on this site to restrict authors from uploading images if they are smaller then specific dimensions. This worked perfectly for me, till I reached the next problem; I need a workaround ...
0
votes
0answers
106 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
25 views

Blogger to wordpress, images downsized

I just migrated my photo blog from blogger to WordPress using import tool. The issue is that all images in all my posts have been downgraded i.e. the image name contains the small dimensions like ...
0
votes
0answers
539 views

Google Page Speed Insights - Optimize Images

The top recommendation from Google Page Speed Insights is to optimize & compress images. How do I do that? It lists dozens of images and that would be practically impossible to do it all manually. ...
0
votes
0answers
283 views

How to make an image bigger with wp_get_image_editor

I'm trying to programmatically increase the size of images that are uploaded. I want to double the size of each image. The code I've written so far is: $pathDirectory = dirname( $imagePath ); $...
0
votes
0answers
86 views

get the post thumbnail returns the full size

The function get_the_post_thumbnail($post->ID, 'thumbnail'); not always returns the thumb size of the image (which is 100x100) for some posts it does but for most of them it doesn't. Even though ...
0
votes
0answers
472 views

wp_get_attachment_image_src

When I use wp_get_attachment_image_src(), the medium sized image is returned on 3 out of 6 of my images. The other 3, the full size image is returned. I've checked and the medium sized image exists ...
0
votes
0answers
883 views

I am trying to get metabox image with custom size

I am trying to get meta box image with custom image size. i used this code to get image but image is not displaying. <?php $img_src = get_post_meta( $post->ID, 'project_options', true ); ...
0
votes
0answers
55 views

How to force attachment size for every post

I created a custom size like this : add_image_size( 'my-size', 615, 9999 ); Is there anyway i can force the ATTACHMENT DISPLAY SETTINGS SIZE to be always ('my-size') for every attachment?
0
votes
0answers
4k views

Get gallery and product gallery images full size

I'm trying to get all gallery images in a while loop of posts (for example a blog page). With the code I'm using right now, I only get the small thumbnail images (150px : 150px). Also I want to get ...
0
votes
0answers
56 views

How to set a Maximum Image size to a Field in WordPress

I have a customized frontend form in WordPress that allows to set a featured image to a post before publishing it. I want to set a maximum-allowed "width" as well as a "height" to the "upload image" ...
0
votes
0answers
52 views

different image size in home

I have the home page in two columns and images of 312×100. The problem is that, when you go the category page, you see the list of posts but the images appear with sizes like the home, with 312×100. ...
0
votes
0answers
125 views

Full sized images in RSS Feed

On my WordPress site all my images from all posts are using a width of 630px (with a full width of 1280px). For obvious reasons on my site I only display the 630px version and the user can click on it ...
0
votes
0answers
274 views

Full size image option removing problem

I have removed the Full size image option from the media upload window see Code: function theme_t_wp_set_image_size_options( $sizes ){ $sizes = array( 'thumbnail' => 'Thumbnail', '...
0
votes
0answers
46 views

wp_get_attachment_image_src match smallest edge

I'm trying to get the minimum image source that fills the given size. wp_get_attachment_image_src(get_post_thumbnail_id(), array(180, 180)) gets the image which fits the size and not which fills it. ...