0
votes
1answer
22 views

How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?

I am designing a magazine style theme and I want different image sizes as to show on index.php page. Now for this, I am using <?php the_post_thumbnail( array(100, 100) );?> but it is picking ...
0
votes
2answers
33 views

Trouble Retrieving Thumbnail URL on Front-Page

I'm running multiple queries on a front-page.php file. They all seem to be working fine, except that I am having a hard time getting a thumbnail image. The code in question, on my front-page, ...
0
votes
1answer
200 views

Display featured image file size, extension, filename, type, orientation?

How to display some information of featured image in post. I need to display: 1. a. Image file size (in kb or MB) b. Image type (.jpg,.gif...), c. Bare image name, with and/or without image ...
0
votes
1answer
77 views

add_image_size() and uploading the exact size leaves 1x1 image in uploads

I've added an image size of 370x150 which works, but if I upload an image to those exact dimensions get_post_thumbnail() no longer works as expected. If I look into my uploads folder I'll have a ...
0
votes
1answer
143 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
73 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
121 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
56 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
301 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
vote
0answers
66 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
votes
1answer
121 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
608 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
818 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
549 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 ...
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 ...
1
vote
3answers
228 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 ...
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: ...
0
votes
1answer
267 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 ...
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
520 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
407 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
2answers
363 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
196 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 ...
5
votes
2answers
992 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
993 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( ...
5
votes
1answer
790 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 ...
0
votes
2answers
154 views

Create an instance of add_image_size

I'm looking for a method to create an instance of add_image_size(); To elaborate: I am using the file uploader in a plugin to insert a file reference by ID. That ID is then used to create touch icons ...
0
votes
1answer
708 views

Resizing thumbnails retrospectively

I have a Custom Post Type called species - fishkeeping species profiles. Each species profile can have as many media attachments as it needs, plus a separate featured image. I've dealt with this by ...
0
votes
3answers
6k 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
451 views

post thumbnail: increase dimension if smaller than… Possible?

I need thumbnails of minimum width: 400px. I would like that if the user uploads an image that is, say, 380px wide, Wordpress creates a 400px-wide version. Is that possible?
1
vote
2answers
320 views

thumbnails are getting clipped down, want to resize instead

I am working on a pre-built theme, and it is clipping the thumbs off. It looks like it is happening in functions.php. I already checked the media and it is not checked. I want to achieve a resizing ...
2
votes
2answers
1k views

add_image_size for post type

I currently have this in my functions file, which works as expected: // Enable Post Thumbnails add_theme_support('post-thumbnails'); // Custom Thumbnail Sizes add_image_size( 'square-small-thumb', ...
2
votes
3answers
2k views

Getting custom-sized featured image's URL?

I'm adding additional image sizes to my theme: functions.php add_image_size( 'my-thumbnails', 122, 122, true ); I used to get thumbnails URL like this: ...
0
votes
2answers
322 views

custom image size not being fetched

I'm developing a theme for a customer in which i need several versions of the same image. In my functions.php file i've added all the image sizes i need. For instance: if ( function_exists( ...
3
votes
3answers
4k views

set_post_thumbnail_size in percent, not pixels?

I've created a new custom post type and I need the post thumbnails or featured images generated by the get_the_post_thumbnail() function to be set in percent, rather than pixels, as I'm using a fluid ...
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 ...
2
votes
1answer
2k views

How to create thumbnails with a fixed width, so all of them will have the same width?

right now, a thumbnail will be either 150px in height or in width, depending if it's landscape or portrait. Is there a way to make them always the same width and scale them in height accordingly, ...
0
votes
2answers
305 views

Server B handling add_image_size() differently than Server A

I'm curious what dependencies add_image_size() has because I just copied a theme over to a new server and began adding thumbnails to custom post types only to find out that my request for ...
11
votes
4answers
3k views

add_image_size() for specific Post Types

set_post_thumbnail_size( 80, 80, true ); // true for all post types Suppose I have two post types in play on my blog: Post, Video and Product. I may want a 80x80 image size for my posts, but 100x100 ...