The tag has no usage guidance.

learn more… | top users | synonyms

10
votes
1answer
2k views

Custom post type with a forced fixed aspect ratio image crop

What I am looking for is similar to a couple other questions. The links are: Creating an Image-Centric Custom Post Type? Using Default WordPress Custom Header Image Crop Feature in a Post Type / ...
5
votes
4answers
4k views

Why WordPress automatic cropping all my images?

Am new to WordPress, when I upload any image, WordPress automatic crops into its own sizes which I have not mention in the media section (Settings » Media). Settings which I saved in media is: ...
5
votes
1answer
133 views

Prevent WordPress from cropping GIF files

Is there any way to prevent WordPress from cropping files based on their file extension. Actually, I want to disable cropping for GIF files because after cropping GIF image... GiF image does not ...
5
votes
1answer
907 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 ...
4
votes
2answers
1k views

Cropped featured image replaces original image in gallery

Firstly, I have done my research as thoroughly as I possibly can. Searches have been made, but I have not found any advice or solution as to my exact issue. Ok, time to explain. Currently I am ...
3
votes
2answers
3k views

add_image_size() zoom-crop

I've set up a bunch of additional image sizes in my functions.php theme file, with the crop parameter set to true. However, the images are resized but not cropped. if ...
3
votes
1answer
2k views

Image resize with image url

I am using wp_handle_upload() to allow users to upload the images in back-end and I want to re-size images to a custom size before uploading it. Is there any way without using any plugins or so to ...
3
votes
2answers
235 views

Override default cropping in Wordpress [duplicate]

Possible Duplicate: How can I make add_image_size() crop from the top? Is there any way to have cropping happen from the center point in an image? All of my Featured Image uploads are ...
2
votes
1answer
4k views

How to crop thumbnail height to auto with set width

I'm looking for a way to only set the width of a thumbnail size and let the height set auto. So if I have two images. One is 600px/420px and one is 600px/600px. I want to set only the width of the ...
2
votes
4answers
4k views

Why can't I edit certain images from the WordPress Media library?

I've noticed some bizarre behaviour in my WordPress installation. For some photos, when I click "Edit Image", the full image is not displayed to me - just the area visible in the thumbnail. And yet, ...
2
votes
1answer
34 views

How to crop image from center using wp_image_editor

I am working on WordPress plugin. In plugin the user upload images from meta field and in back end i use wp_image_editor for cropping and re sizing the images. The images re sized very well but on ...
2
votes
2answers
2k views

Cropped thumbnail still displaying as full image

Steps to reproduce... 1) Add to functions.php: add_image_size( 'half-size', 200, 200, false ); 2) Add to template file (inside loop): <a href="<?php the_permalink(); ?>" title="<?php ...
2
votes
0answers
29 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. ...
2
votes
1answer
526 views

Crop image from get_theme_mod Customizer field

I'm using the following code to allow a user to upload a custom image (in addition to header image) through the customizer. Is there a way to crop the image when displaying it? ...
1
vote
1answer
158 views

Confusion about arguments sent to add_image_size

Looking at the documentation for Cropping Thumbnails when adding new image-sizes makes me confused. Set the image size by cropping the image and defining a crop position: add_image_size( ...
1
vote
3answers
2k views

the_post_thumbnail scaling not hard cropping

Lately I wanted to upgrade my blog with featured images/post thumbnails. I'm using a custom theme build on the roots theme (this is not a roots theme issue, I believe). The image I upload is 1024x768 ...
1
vote
1answer
239 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
1answer
17 views

Wordpress crops images differently on retina screens?

I am currently testing my websites on different types of screens and while my image cropping works perfectly on a non-retina screen, I am running into some cropping issues on retina screens. I have ...
1
vote
1answer
1k views

Wordpress fails to auto crop featured images

I set 2 crop sizes in the functions.php file. // Setup Post Thumbnails // ----------------------------------------------- add_theme_support('post-thumbnails'); add_image_size('imagePost-thumb', 970, ...
1
vote
0answers
17 views

Crop image with full width

Sometimes I need to crop images' heights in wordpress media library. When I try to crop the height it always decreases the width of cropped image by 2px. See the screenshot below. The original image ...
1
vote
1answer
343 views

Generated media have incorrect aspect ratio

Uploaded an image via standard 'add new' dialog to the WordPress Media library. Here were the original Media Settings: Thumbnail - 150x150 Medium - 300x300 Large - 1024x1024 I uploaded a ...
1
vote
1answer
139 views

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

I can't found my very problem in other threads. I'll try to explain: want to use thumbnails MAX 400px width. That means that CAN be 400px, but not always they should be 400px width. They can be even ...
1
vote
1answer
110 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 ...
1
vote
1answer
952 views

Force image crop size in media editor

I've searched high and low for this but think the answer I seek is being buried by the more common questions. I am developing a theme for a client that has two specific image sizes (100x127 for ...
1
vote
1answer
60 views

How to have the thumbnail cropping tool working

I've been using wordpress (and developing on it) for years now, but never be really able to use the drop tool. So I try to ask here... If I crop a thumb, I see the right cropping in the media ...
0
votes
5answers
136 views

Wordpress images not cropping properly

I have my post image thumbnails set with: add_theme_support('post-thumbnails'); set_post_thumbnail_size(1280, 436, true); add_image_size('general-thumb', 600, 339, true); They are ...
0
votes
2answers
737 views

Mass crop images: Landscape images -> Portrait images

I have several images that are wider than they are tall (landscape). The problem is that the theme I'm using crops images to 150x214px (taller than they are wide). This set up works for the majority ...
0
votes
2answers
329 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 ...
0
votes
1answer
3k views

How to upload multiple images on frontend to ACF gallery using update_field

I'm trying to save images submitted on a frontend form in a way that they are accessible via the ACF backend. In how to upload an image on ACF with update_field on wordpress, someone provided a ...
0
votes
4answers
6k 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
1answer
741 views

WordPress image crop probems

i'm developing a portfolio theme on WordPress 3.2.1, so i created a new post_type called 'portfolio'. My aim is to show, on the front-end, a grid composed by the jobs i realized during last years. ...
0
votes
1answer
644 views

A way to get featuread image or first image and crop on the fly before display

In Loop = There exist a way or hook to get the featured image, if not, the the first image from post and cropit before display it on frontend? Re-asking my question: On upload. How do I set a ...
0
votes
1answer
50 views

Disable image rename on upload

When I upload an image (test.jpg) with the Media manager it creates the same image with a digit after its name (test1.jpg). I disabled image cropping so files like test-[width]x[height].jpg don't ...
0
votes
1answer
57 views

Auto-crop width, not height

I need images to be auto-cropped if they are too wide only. Basically like this: I'm using it for a fullscreen slider, where too wide images gets stretched. Cropping obviously is the best of two ...
0
votes
2answers
1k views

wordpress add image size crop function not working in version 3.8

I am using twenty fourteen theme to make another theme most of the files are same including the functions.php file, but the problem I am having is , When I add image size ( with true crop, hard crop ...
0
votes
2answers
783 views

Woocommerce: Set thumbnail detail (clipping area)

I am using the german Wordpress 3.5.1–de_DE with Woocommerce 2.0.8 and the Woothemes Mystile Theme 1.2.8. I have a big picture for a product (Jellyfish.jpg) and want to use a specific area of that ...
0
votes
2answers
953 views

add_image_size() to crop images into squares?

So I know about setting custom images with add_image_size('name',X,Y,Crop?) which is cool but I need to build something that will crop images, regardless of their size, into squares. Basically, I ...
0
votes
2answers
1k 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
1answer
816 views

VT-resize (great alternative to timthumb) : Errors cropping (litespeed, centos 6.3)

I'm using from several months wt-resize, a script to resize images on the fly. It works very well until now... I've changed hosting provider. I'm using now Centos 6.3 (no control panel) + Litespeed ...
0
votes
2answers
251 views

Using catch_the_image to get the thumbnail size

I use front end posting on my site so I don't get a chance to set a featured image for alot of my posts. So I use catch_the_image to get thumbs but it gets the original size and then scales it which ...
0
votes
0answers
7 views

Change default “Apply Changes To” radio option when editing images

I have a theme where when the user edits images, I want the changes to apply to "all sizes except for thumbnails". She remembers to check this box most of the time, but not always, and it is very ...
0
votes
0answers
9 views

Invoke Wordpress' cropping tool in the front end

Is there a standard way to invoke Wordpress cropping tool in the front end? I'm asking about the one available in the media library on attachment page, when 'edit image' button is clicked.
0
votes
1answer
52 views

variable crop option with add_image_size()

In my child Theme I have set my custom image with add_image_size( 'big', 1500, 1000 ) I left out the crop parameter, but it is [false by default][1] anyway. I want to make this a variable option. I ...
0
votes
0answers
30 views

Cropping image results in image being too small

This is the wordpress version 4.2 powell I crop 1500 x 1000 and then press on crop, then save. Resulting image size: 1497 x 1000 I don't know, I somehow hoped that wordpress is able to bloody ...
0
votes
0answers
68 views

Add crop function to media upload

I'm making my own theme and i basically copied this image upload: http://www.webmaster-source.com/2013/02/06/using-the-wordpress-3-5-media-uploader-in-your-plugin-or-theme/ ..but since its for a ...
0
votes
0answers
228 views

Set image dimension for WP_Customize_Image_Control images

In the customize page for the current theme the Current Header's Choose Image dialog shows - a "select and crop" option But the custom WP_Customize_Image_Control shows only "Choose Image". Is ...
0
votes
1answer
81 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
0answers
63 views

Access to the header cropping tool in modal

For the moment I access the media uploader via a meta box from the edit post screen. The code works: no problem. However, I would like to know how to be redirected to the crop tool right after the ...
0
votes
0answers
100 views

Portrait or Landscape images are not cropped to exact dimensions

I'm using a theme that's registered a new image size of 580x580 that's then resized to 100% width to fit in a column (approx 200px wide) The problem is that an image that is originally 225x600 gets ...
0
votes
4answers
212 views

Post thumbnail height problem

I am trying to create a square thumbnail with auto crop with size of 300px 300px. I only get the width of 300px but the height is auto, i think is not cropping. I tried this: add_image_size( ...