Tagged Questions

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
1answer
634 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", ...
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 ...
1
vote
0answers
131 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
130 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
635 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
859 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
611 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
259 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
1answer
572 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
vote
2answers
257 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
325 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 ...
2
votes
2answers
1k views

How to scale up post thumbnails/featured image?

Is there a way to scale up post thumbnails on Wordpress? On a featured div I want a post thumbnail/featured image with 584×348 px. When I upload a smaller image as a featured image on a post, it ...
0
votes
1answer
178 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 ...
1
vote
1answer
190 views

Custom image size not regenerating when image editted

I have a custom image size at 200x150 that works fine in a plugin I'm working on. Uploading new files is no problem but when I edit an image, the default image sizes get regenerated but my custom ...
0
votes
1answer
138 views

Custom image size doesn't work

I'm developing my own theme. I'm trying to remove the default WordPress image sizes medium, large and full. I also want my own image size, vividflow-full-width. I'm using this Sumtips tutorial. At ...
0
votes
1answer
103 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
3answers
234 views

Thumbnail with different sizes

I want make all my blog thumbs the size of 227x133. I need images width have 100% (for responsive design). Some images have width greater than the other and vice versa. I'm using this code to show ...
0
votes
2answers
622 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 ...
0
votes
2answers
106 views

Only make custom image size if uploaded via Thickbox and attached to certain page

I am trying to make it so that WP will create another size image for me, but only when the image is uploaded via the Thickbox, and only when it will be attached to a certain ID. Does anybody know how ...
0
votes
2answers
503 views

How to get image name, mime type, width, height, file size from post custom field?

What I need is some function to echo file name of image used in post like "image-file-name.jpg", or just "image-file-name". Also it would be great to be able to have even more information about image ...
10
votes
2answers
2k views

How can you set maximum width for original images?

Case: I have a client that doesn't know much about the digital world. However what she does know is how to get the photo's from her camera on to the computer and in WordPress. However she doesn't know ...
1
vote
1answer
2k views

How to scale image with equal width and height without distortion?

I have a section on my frontpage that querys through recent posts and grabs the title and thumbnail of each. In my functions.php, I've specified a width and height for the thumbnail using: ...
1
vote
1answer
104 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
270 views

Regenerate Thumbnails Plugin successfully updated my thumbnails but image src won't change to new image size?

I "successfully" regenerated my thumbnails using the Regenerate Thumbnails Plugin as I added a variety of new image sizes to my site; however, I'm having difficulty getting these new images sizes to ...
2
votes
2answers
2k views

remove or update add_image_size

I'm working on a theme that has a number of image sizes defined correctly using: add_image_size( 'name', 500, 200, true ); I would like to override these defined sizes from the child theme: ...
1
vote
1answer
339 views

Add custom image sizes to media uploader

I want to add custom image sizes to the media uploader: In order to do this, I use the following code (comments are there for convenience): // this function adds the custom image sizes to the ...
1
vote
1answer
386 views

Auto resize images after adding a new size

I have added a new (small) image size to the theme we develop: add_image_size('small', 160, 91, TRUE); How to automatically generate these small images (exactly of the specified size) for every ...
0
votes
1answer
1k views

the_post_thumbnail('my_image_size') always outputs full image

I'm developing a custom theme that uses several custom image sizes defined in my functions.php like this: add_theme_support('post-thumbnails'); add_image_size('featured_thumb', 175, 120, true); I ...
0
votes
3answers
535 views

Setting post thumbnail sizes in template file and functions.php

For my post I have a box for the post image and the size of the box is 214 x 73. I want the image to fit the width of the box and have it cropped at 73px height. This is what I have so far in my ...
-1
votes
2answers
418 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 ...
0
votes
5answers
7k 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 ...
2
votes
2answers
630 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 ...
3
votes
1answer
250 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
2answers
387 views

How to update custom image sizes?

I've added multiple custom image sizes using the add_image_size function. The problem here is when I need to update the proportions of these sizes, the changed sized won't apply. My guess is that ...
0
votes
1answer
199 views

Add_image_size not generating correct size

I have 2 additional image sizes i've added to my theme and the for some reason when I use the Force Regenerate Thumbnails plugin, my images are created but the files sizes are not exact. Here is the ...
0
votes
1answer
123 views

Custom image size mixes width and height in output

I want to use a couple of custom image sizes for a site that I'm developing. When I output the images I sometimes do not get the correct width size because it is mixed up with the height size. It ...
6
votes
7answers
796 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 ...
1
vote
1answer
388 views

Image Uploader API

I want to create a widget for my theme that will let me upload an image to WP and crop it to a certain size. Can anyone point me to the codex page or a tutorial on how to a bare bone implementation of ...
1
vote
1answer
158 views

Custom image size not selectable in uploader

I want to add a custom image size for each image, that is uploaded into posts (via the uploader). I found code-examples on several websites, but somehow they just don't work for me. This is (the ...
0
votes
1answer
427 views

Using add_image_size in functions.php to get original uploaded file

It is possible to use add_image_size in functions.php to get the original uploaded file size. Because when I uploaded the images to my posts I cropped them in order to have 1x1 ratio for all my image ...
1
vote
0answers
94 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 ...
6
votes
1answer
679 views

Changing JPEG compression depending on image size

Short. I want ''large' images compressed by 90%, and 'medium' to be by 60%. Has many af you know, sometimes larger images suffer from high compression, but other small images don't. This function ...
5
votes
2answers
1k views

New image size version only for the Featured Image file

I'm worried about too many files created when adding a new image size. All uploaded files will generate the new size, I need a specific image size only for the file set as Fetured image, is there ...
2
votes
1answer
1k views

Can a thumbnail of an animated gif be animated?

I have an animated gif I want to show in two places, having two different sizes. I am creating two sizes in my functions.php, using add_image_size( 'small-feature', 500, 300 ); add_image_size( ...
0
votes
1answer
89 views

Custom image size vs CSS sizing

I am developing a theme which will have 2 configuration options for the slideshow in the header; a full width version and a half width version. The theme is also responsive and so I am trying to ...
7
votes
7answers
4k 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 ...
1
vote
1answer
1k views

Get post attachment images dimension and use in embed code

I am trying to make things work like where any post attachment image will generate embed code automatically. Example: If I upload and add two images 1. 250x150 2. 600 x 160 and insert into post. Now ...
5
votes
1answer
808 views

How to add multiple image sizes of the same size with add_image_size

I'm using a grayscale filter on all uploaded images in my WordPress installation. However I want both the gray scaled image and the colored image in my website (colored on hover). The way I tried to ...
5
votes
2answers
5k views

How to scale up featured post thumbnail?

The situation is this: I'm using Video Thumbnails plugin to automatically get and set youtube/vimeo thumbnails as post featured image. The problem is that default youtube/vimeo thumbnail sizes are ...
1
vote
2answers
3k 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, ...