0
votes
1answer
89 views

Get the size (size in Kb or MB) of an featured image?

I need to display some featured image info on post page. Among other info I need to display file size of image (featured image of post). I tried this function inside single.php. <?php function ...
0
votes
0answers
16 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 ...
2
votes
1answer
48 views

Confused about image sizing business in Wordpress

I'm creating my first Wordpress theme and I've got everything working fine, and by following this tutorial and few others I've understood how to add custom image sizes by using add_image_size() ...
0
votes
1answer
62 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
79 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
0answers
22 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 ...
6
votes
4answers
311 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 ...
1
vote
1answer
39 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 ...
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?
0
votes
1answer
65 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
28 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 ...
0
votes
2answers
38 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"; ...
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, ...
0
votes
1answer
96 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
29 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
0answers
63 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
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
39 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
110 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
1answer
221 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
472 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 ...
0
votes
1answer
117 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
2answers
430 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
1k 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
316 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
350 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 ...
-1
votes
2answers
366 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
6k 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
2answers
309 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 ...
6
votes
7answers
706 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
119 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 ...
6
votes
1answer
637 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
944 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
893 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( ...
6
votes
7answers
3k 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 ...
5
votes
2answers
981 views

Remove images (files) that were generated when using add_image_size()

I have added an image size using this: add_image_size('property-featured', 484, 393, true); It's worked very well for the past year and has generated about 1GB of images in that size, but this ...
1
vote
2answers
375 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
1answer
477 views

changing the default picture size link url

when i'm inserting a single picture thumbnail from the gallery with a link to the original picture, it gives me this: <a ...
0
votes
1answer
135 views

A little confused as to what add image size actually does

I have a call to add_image_size like so: if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); } if ( function_exists( 'add_image_size' ) ) { ...
11
votes
3answers
6k views

How can I make add_image_size() crop from the top?

I have a series of posts, all with featured images, but I need to be able to customise the crop top right corner. In this instance, I need them to be cropped from top right, but it would be useful to ...
4
votes
1answer
688 views

How to resize images in wordpress without adding any compression or changing the color profile of the images, possible?

As you can guess from the title, Im looking for a solution that allows me to alter the way Wordpress processes/saves its newly created images according to the media settings in the dashboard. This is ...
0
votes
2answers
361 views

Need To Resize Images Exactly Without Losing Image Details

I am working on a Wordpress site that heavily uses image uploading and whatnot, I have defined the image sizes in my functions.php and I have hard crop mode turned on which ensures that my images are ...
6
votes
3answers
9k views

Add new image size to media uploader so users can insert into post?

I would like to create an additional size for uploaded images which my users can then "insert into post". I understand that add_image_size() will add a new image size which I can use in my theme, but ...