The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
209 views

How to create resized versions of images added with wp_insert_attachment

I'm uploading images to my media gallery and setting them as my post's featured image, which is working quite well. I'd like to generate thumbnails of these featured images, in the same way that ...
0
votes
1answer
156 views

Control resizing of uploaded images

I am looking for the regular images that get uploaded from the media uploader. I want to put in an image resize script instead of using WordPress to manage the images. The main reason being is that I ...
9
votes
5answers
3k views

How to disable WordPress from creating thumbnails?

I've been looking around the net for a long time on how to disable WordPress from creating multiple thumbnails. I've seen in most tutorials to set all the images to 0 in the media section. I have ...
2
votes
1answer
116 views

How to change the naming of the resized image files

Now with custom image sizes Wordpress is almost as powerful as timThumb / phpThumb. There is one problem however. The way Wordpress handles the resized images are chaotic and doesn't survive theme ...
0
votes
1answer
59 views

Upload image from other server without resize?

For image upload in my plugin i am using media_handle_sideload function. Is it possible to disable image resizing on this function?
1
vote
1answer
183 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 ...
1
vote
2answers
194 views

Dynamic-Image-Resize Plugin does not output anything

I'm having trouble using the "Dynamic-Image-Resize" plugin by "Kaiser Franz Josef". In my template I'm adding following code: $imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id( ...
0
votes
1answer
195 views

Prevent creating multiple image resizes in twentytwelve template

I am using wordpress twentytweleve template and I notice every time I upload an image it creates 3 different thumbnail sizes. In my media settings I have already set medium & large size to 0. It ...
0
votes
1answer
162 views

Wordpress Resize Image and show as thumb in post

I have set crop in functions.php to resize Images for Posts. Codex from Wordpress: add_image_size, post_thumbnail add_theme_support('post-thumbnails'); set_post_thumbnail_size(100, 100, true); ...
1
vote
1answer
1k views

Using wp_get_image_editor in a standalone script

With WP 3.5, they updated the image resizing scripts with wp_get_image_editor. Currently, in this standalone script that is accessed with Ajax, I have included wp-load.php so I can access all of the ...
2
votes
1answer
2k views

image_resize in wp3.5 change to wp_get_image_editor and wont work

After 3.5 removed support image_resize and now says to use wp_get_image_editor as described here: https://codex.wordpress.org/Function_Reference/wp_get_image_editor Before (when it was ...
0
votes
1answer
46 views

How to change picture size

How can I resize a picture I've already posted? I can click and drag the corner of the picture and it resizes the picture, but only horizontally, so the picture looks really squashed. I can also go ...
2
votes
2answers
385 views

Resizing Images to lower Disk Space Using Plugins

I'm trying to take existing images and shrink the file size down by resizing to photos to a smaller resolution. I've tried a few methods so far: Simply editing the photo in photoshop and reuploaded, ...
1
vote
1answer
376 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
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
3answers
2k views

Setting different width and height for gravatar

I've been trying to set a different width and height using the get_avatar function. I need to set the author's avatar in single.php to 60x40 size. So let's say the gravatar looks like this: when ...
3
votes
3answers
1k views

Impose a Maximum Limit on Image upload size

Clients have been uploading huuuge images, then complaining that the server is running out of memory. Ofcourse one could bump the amount of memory, but this just introduces an arms race. What hooks ...
-1
votes
1answer
224 views

Resizing to bigger proportions as original not working

E.g. if I use this code inside functions.php add_image_size( 'featured-extra-image', 600, 300, true ); and the uploaded image is only 550px width, it does not resize it to 600x300 px but only to ...
1
vote
1answer
844 views

Automatically replace original uploaded image with large image size

As our users regularly upload ~6MB images to use on the website (and aren't too familiar with how to resize them first), WordPress stores the originals as well as resizing them to several different ...
3
votes
2answers
218 views

There's a way to scale media (images) at 50%?

I wonder if there is a way to scale down uploaded media exactly to 50%. From what I see, with add_image_size you can only specify a width and a height in pixel. The idea is to upload high resolution ...
1
vote
1answer
188 views

Image resize depending on orientation?

is there an option or a plugin that resizes an image depending on it's orientation? Reason for this question: Im building an image grid and it would look even better when all images would have the ...
0
votes
1answer
330 views

Autogenerated Thumbnail compression depending on size

This is a follow up to this question, in witch the jpg compression is altered depending on what WP's built-in image resulting image size returns. While it may work for most of the people, i'm looking ...
2
votes
1answer
2k views

Using Advanced Custom Fields with Wordpress and Lightbox

I am using the ACF Plugin. I want to have a field where I can upload an image, and the result will display the full image in the Lightbox and then then full image will be resized into a thumbnail from ...
5
votes
1answer
303 views

Which filters or actions to use after a media upload and delete?

When a media (image) is uploaded and the subsequent images are created (all the different sizes), I would like to perform a few actions. It is simple and I basically need only the new attachment ID, ...
0
votes
2answers
107 views

How can I scale down the width of images in bulk that are embedded in posts throughout the site?

I am building a new WordPress theme and it is quite different from my current theme. Currently the dimensions of my images are much wider than how I would like them to be for my new theme I am ...
2
votes
1answer
992 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
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 ...
2
votes
1answer
1k views

resize images not crop

Looking for a hack to resize images on upload (all forms of image uploads on wordpress) to exact dimensions, but not to crop. I will open a bounty for this question since I believe It can be of help ...
4
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 ...
2
votes
3answers
3k views

Settings in 'Media > Settings' is ignored when inserting images

When I upload an image, it is automatically resized as I would expect, however the sizes for inserting the image seem to ignore the settings I've placed in Settings/Media. In my media settings I ...
7
votes
3answers
386 views

How to insert pictures without hard coded dimensions?

How can I insert pictures into a post without any hard coded dimensions (e.g. <img src="" alt="" /> instead of <img src="" alt="" width="" height="" />)? I don't want my users to switch 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 ...
1
vote
2answers
1k views

Advanced Custom Fields

I am using the Advanced custom fields plugin to add a upload image option to a page, but I am wondering if there is a way so that, when I output it to a theme with <img src="<?php ...
1
vote
2answers
2k views

Creating a thumbnail from an image already on the server?

I'm trying to generate thumbnails on my server that are being uploaded by a plugin. It uploads all images to a directory. I'm trying to target these files and then create a thumbnail with them based ...
0
votes
1answer
294 views

image_downsize returning an Array?

I'm attempting to generate a thumbnail for an image I have posted, but it seems when I call image_downsize, the index[0] actually prints an array as the URL. I'm a bit confused, so any help would be ...
1
vote
3answers
2k views

Resizing image into thumbnail, small, medium and large options greyed out

I am working with WordPress 3.3.1 and cannot resize the image I am trying to add to the page as the thumbnail, small, medium and large options are greyed out. the size of the image in question is ...
3
votes
3answers
18k views

PNG with transparent background turns black when uploaded and resized

Steps to reproduce: Create a PNG-8 with a transparent background. Upload to WordPress 3.3.1. View original PNG in any browser, Chrome, Firefox, IE, etc. Notice that it retains transparency as it ...
1
vote
2answers
928 views

Disable image resizing on specific upload fields

I am using the Options Framework Theme from devinsays, but am having a "small" problem with the Image Upload functionality. Basically, I need to disable resizing on a specific upload-field, but keep ...
0
votes
4answers
4k views

Getting Different Size Of Attachment Images

I'm confused, because there are a lots of functions about attachments . I've tried a lots of functions. I'm setting a featured image for my every blog post. I have to get different sizes of this ...
0
votes
3answers
178 views

How to resize attachement

I m having trouble in resizing media images. I tried add_image_size function to resize my original image like below. add_image_size( 'my_thumb', 145, 100); it creates thumb images with height ...
0
votes
2answers
1k views

Conditional Statement - check if post has an attachment image

I'm working on a conditional statement (in a loop) that looks for a featured image then grabs a default image if there is none, which I have figured out. But, I also wanted a way to pull the first ...
0
votes
1answer
761 views

Image resizing - TimThumb vs convert on upload?

I'm using jQuery Supersized to display a full screen background slideshow on my blog, and I'm using mobile detection to serve a smaller version of the images to mobile devices so it will load faster. ...
0
votes
1answer
248 views

Migrating a website using custom image tags to use featured images instead

I have a site that was built using a Wordpress 2.x era theme that uses a custom field "image" to hold the URL to use as a featured image for each post. I am migrating to use the PageLines Platform ...
0
votes
1answer
91 views

Best way to receive special images in posts

Okay, this is what I'm thinking about (and it's not a coding problem right now, but my fundamental thoughts): How to receive / input images in posts for special uses, let's say a customized portfolio ...
0
votes
1answer
763 views

Three Questions with Twenty Eleven theme

I have a few things that I need help with in Twenty Eleven. The logo I put in the header is resized to 578px by 160px, when it is supposed to be 326px by 90px. I would like to simply the php code ...
3
votes
2answers
585 views

Image dimensions same as image size

So if I set the large image size in the media library to say 600x600 pixels, and then upload an image which is the same dimensions it won't get set as the 'large' image. There is talk on this ...
0
votes
3answers
968 views

How to batch resize images and change image url?

I'm making a new theme for a blog that will be slightly narrower. Thus I need to resize every image and also change the image url in every post. Is there any kind of plugin handling this?
2
votes
2answers
143 views

How to handle core code throwing notice on valid input?

I have combination of valid input with native WP function throwing PHP notice. In this specific case it is image without extension with image_resize(). This is usually suppressed by WP, but it still ...
0
votes
3answers
1k views

Timthumb.php image gallery not working on Multisite Wordpress

What I am trying to do is get a gallery working on a multisite wordpress installation . . It works on the home site because that is where wordpress is actually installed but not on the sub domain ...