Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [image-resize]

When the user uploads an image, WP automatically resizes it to all the sizes that have been registered. Existing images are not resized when the theme is switched. There are filters available to influence the resizing process.

0
votes
4answers
53 views

How can I server scaled images?

I am working on an eCommerce website, with WooCommerce powering the shopping side of things. The website has a 'Recent Reviews' Widget, within the Footer. As well as the Review itself, it also ...
8
votes
2answers
5k 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
2answers
184 views

Editing image dimension - to edit the main image file

When started blogging, I was not aware about the image file's size, and used a lot wider and sharper images without necessity, some of the files are even 5-7mb in size. As there's no such necessity to ...
0
votes
2answers
57 views

How decrease the size of images which are present in uploads folder?

I want to resize images in uploads folder. What would be the best way to resize images on a live website?
0
votes
2answers
127 views

Images not aligning correctly

I am trying to upload new images to a website which was built by a developer. I know my image sizes are wrong but what is the best way to ensure all images are the same size in the browser?
0
votes
2answers
216 views

Need help making my homepage blog image smaller than my post image

For example I have an image that's very long but want to show a cropped version of that but when people click my blog post from the homepage they see the longer version. I tried doing using the ...
0
votes
2answers
536 views

Automatically generate missing images

I'd like to auto-generate images, or rather image sizes, in old posts where the size is currently missing. Specifically I'm hoping to generate sizes on the fly when a specific (old) image size is ...
3
votes
1answer
481 views

Cropping, Re-sizing and Saving images from one folder to another folder in wordpress

I'm adding an upgrade for the WordPress plugin which I have developed ages ago. This plugin is just a product catalog, so just show products and their images. Products can have more than one images. ...
1
vote
1answer
33 views

Stopping WordPress from Auto Generating Image Files for Sizes

I have a custom post type with an image upload meta field. Every time I upload it an image with it though, I am getting extra image files for each of the predefined sizes from the theme's functions....
1
vote
1answer
467 views

Stop WordPress from cropping images using url parameters

I've specified some custom image sizes each with a non-default crop position (e.g. top-center). However, when I use wp_get_attachment_image and specify size to be one that I defined, I get a correctly ...
1
vote
1answer
2k views

How to fit image to Thumbnail canvas size?

I need to upload images with a different orientation (portrait and landscape) and I don't want to crop post-thumbnails. But I need always thumbnail size 250x250px. If I upload a portrait oriented ...
1
vote
1answer
220 views

Custom image size in the_content loop

I changed the default image dimensions for the "large" thumbnail and re-generated my images using a plugin. The new image size is only shown on new posts created after the image size was created. How ...
1
vote
1answer
223 views

How to both crop (with tool) and resize thumbnails having only a max width constrain?

I want to use thumbnails (max. 400px width). That means thumbnails can be 400px, but not always they should be 400px width. They can be even less. So, in the same page, one thumb 400px, one 320px and ...
1
vote
1answer
765 views

Resize header image

How can I access to the css file where is the header's background image? background: url("http://xxx.es") no-repeat scroll center top / 1600px auto transparent; It's not in the style.css
1
vote
1answer
158 views

media resize/crop possibilities?

Under admin panel -> media settings there are no minimal width option for thumb or other image modes ex: I would like to crop image widthout distortion -> height 124px and minimum-width 124px and ...
0
votes
1answer
10 views

Set custom banner image size with wp_customize

I've set the banner image of my site to be customizable through appearance -> customize. I'd like to adjust the image size and crop aspect ratio of the customizer, as it's still set to a thumbnail ...
0
votes
1answer
16 views

Page size too big due to images

I hope it's a fitting question to be asked here. My website loads the images and then resizing them. So what happens is the image is loaded full sized and then reduced. I have lots of images already ...
0
votes
1answer
32 views

How to resize image in wordpress from backend? Seems like bug in wordpress

I'm trying to resize images to smaller sizes using wordpress admin. But I have trouble doing it. I have selected an image and opened it for editing. Original dimensions of my image is 255 × 300. ...
0
votes
1answer
60 views

Link to resized media file

I have a WordPress website with existing content and images. Currently, images in posts link to the original media file. I’d like to modify this, such that they link to a resized version of the image (...
0
votes
1answer
44 views

Upload image without resizing but insert in post with resizing

OK so I tried to find this problem in whole web but didn't got any solution. . basically. I have set in my Options > Media Settings : Medium size : Max Width : 500px| Max height : 500px When I ...
0
votes
1answer
235 views

Keep the original ratio in a thumbnail image

I’m using a thumbnail size of 100 * 60 in my blog, but sometimes I want to use square images. Is it possible to use a Wordpress plugin or CSS to make it fits by adding background in the sides to keep ...
0
votes
1answer
113 views

How to change this internal image link parameter using PHP?

How resize this string / change link parameter. Original file = mydomain.com/wp-content/uploads/2015/01/name-file.jpg Return to $string now = mydomain.com/wp-content/uploads/2015/01/name-file-...
0
votes
1answer
307 views

Small image resizing for big! Alternative to timthumb

I come here to ask for help for you ! I need some script in PHP or some explanation to take my picture posted on highlighted images and resize to the size I need? I know and add_image_size do this , ...
0
votes
1answer
284 views

How to show images uncropped after uploading?

As you can see, I've uploaded an image of book. Whenever I upload images, wordpress seems to crop it all the time. Is there a plugin or a code I can put to where it will show the whole picture instead ...
0
votes
1answer
137 views

Thumbnails resized and not cropped in the center

here's image of some thumbnails in my wordpress homepage: http://i.imgur.com/x8EmtMO.png The first one is resized very nicely - I don't know why and how - and the other ones are cropped in the center ...
0
votes
1answer
235 views

Make all images displayed in single.php a certain size

I’m working on a fashion blog with a lot of images. I’ve imported all posts from Blogger to WordPress and it seems to have left me with images which have a size added on to the end of their src: http:...
0
votes
1answer
104 views

(Dynamically) Decrease the actual image size for downloads

I am using feedburner (give it the url of my RSS feed). Each of my feed item have an image, is there a way to lower the actual image size so that people dont have to download the real size? EDIT FROM ...
0
votes
1answer
42 views

Post Images Size Change in Wordpress

I am new to WordPress and have no knowledge about codes. Problem: My website page with the problem is: http://ecurative.com/?p=970 The image size is too big and looks blurry. I need a way out to ...
0
votes
1answer
161 views

Snapshot Theme from WooThemes — empty 'alt' attribute

I´m using Snapshot theme from WooThemes. The code which resizes (width and height and size in kb), and shows the images (an 'a' tag, wrapping an 'img' tag) is this one: <?php if ( get_option('...
0
votes
1answer
121 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?
2
votes
0answers
2k views

How to resize image on client-side before upload?

I've been using Plupload to resize images on the client side before uploading them to the server. I've implemented a front-end form which lets the user select a file from their computer and submit it. ...
1
vote
0answers
38 views

Hardcoded Images Too Big

I have a ton of hardcoded images and a bunch of custom image sizes. All image URLs within the content of the posts link to the full-size image. I tried a string replace on the_content filter adding ...
1
vote
0answers
48 views

How generate 200% image size and save with suffix @2x

I need to know is it possible to generate 200%,200% image size and save with suffix @2x simply in WordPress? want to enable a simple retina ready theme.
1
vote
0answers
226 views

Replace original image, WP image editor

By default WordPress doesn’t overwrite an existing image, if image is edited using built-in image editor, instead of that new image is created. For example image file: image-file-name.jpg is edited, (...
1
vote
0answers
50 views

Intersept image upload and generate retina image from source

My goal is to make a retina and non-retina image when user uploads a photo. This is doable like so: add_action('init', function() { // Get the original image sizes and duplicate $thumb_w = ...
1
vote
0answers
40 views

Altered media sizes (in dash), not updating to existing images/posts

(I have searched but not found a satisfying answer – bear with me). I have a client that has a website with 1500 posts. Each post consists of ONE image, no text. I have changed to the Oria theme (...
1
vote
0answers
1k views

“Unable to create new image” error in wordpress dashboard image editor

My server is nginx and wordpress version is 3.8.1. I can upload images but when I try to edit the image (scale, crop) it gives below error and doesn't show picture. I have tried with 400kb to 1mb ...
1
vote
0answers
1k views

How to specify image width and/or height attributes for images uploaded using Wordpress uploader

When I check my website speed using GTMatrix for many images uploaded using WordPress uploader that image(s) are missing width and/or height attributes. Wordpress by default provides width & ...
1
vote
0answers
579 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
0answers
9 views

Is it possible to remove original src from wp_calculate_image_srcset() results?

Was just wondering how one could load a custom srcset stack. I know the srcset loads all registered sizes so I'm good on that side but I cannot find a way to remove the original src from there without ...
0
votes
0answers
29 views

Load only imagens resized in custom page

I have a custom page called "produtos", and i have created a php file for showing the image in frontpage, but i desire to load only resized images, not raw image rezised. My code is: <?php /** * ...
0
votes
0answers
20 views

Best way to manage theme images

I am currently wondering what is the best way to let the user choose between a certain number of thumbnail size for the shortcodes I am building. add_image_size function is the simplest way but ...
0
votes
0answers
41 views

Resize images to match CSS

I was wondering is there any way to automatically resize images to match the dimensions set by the user. What I mean is: User creates a post and he puts an image with id="my_img" and src /my_path/...
0
votes
0answers
1k views

How to resize an image server-side before upload?

I've been trying to resize an image client-side before uploading (see this question). I'm now trying to resize server-side before uploading. I think wp_handle_upload_prefilter is the filter I should ...
0
votes
0answers
326 views

Different image heights for different resolutions without distortion

In Meta Slider for WP as in most sliders, the height is defined once and for all in dashboard. Sometimes though a full-width slider can look too thin on a mobile, but if you increase the height "...
0
votes
0answers
609 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
723 views

Wordpress Image Resize fails without Error Message

I wonder why resizing a jpeg image fails in Wordpress without throwing a PHP Error with memory_limit error or Filesize Error. The image is 2MB big jpeg with RGB colorspace. Dimensions 4496x4496 (...