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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [image-editor]

The tag has no usage guidance.

1
vote
1answer
95 views

wp_get_attachment_image_src returns the wrong image

I uploaded an image my-image.jpg of dimension 1280x854, after that, I went to Dashboard > Media to crop it to 854x854. (Apply changes to All Image Sizes.) This however only change its thumbnail in ...
0
votes
1answer
179 views

Set default “Link CSS Class” in add media admin editor

I want to set the default link css class to all those images which are added to admin editor. I have found the way to add default image class with this action: function add_image_class($class){ $...
1
vote
0answers
225 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
2answers
461 views

How to get current image's slug in WP_image_editor?

I’ve been writing some class and functions to modify the path of thumbnails. I extended the original WP_Image_Editor class to achieve custom structure. What i want: to store the thumbnails in ...
0
votes
0answers
64 views

How can I stop WP Image Editor upscaling from looking so pixellated?

I know the WP Image Editor is not meant to upsize images, gives a WP_Error if you try, and any time you upsize an image you lose quality - but as mentioned in their source code you can use the '...
0
votes
2answers
2k views

Adding custom image size to the media image editor

I'm trying to give a more complete experience to my WordPress backend users and let them edit the custom image sizes I have added to my theme. I added this to my functions.php: add_image_size( '...
0
votes
1answer
76 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
1answer
516 views

Set Link Target Checkbox chcked on Edit Image MOdal Window in Admin Post Edit Screen?

Inside of newer versions of WordPress in the Visual Editor when you add a photo, you can then click on it which reveals an Edit, Delete, and Resize buttons. Now if you click on the Edit button shown ...
6
votes
1answer
815 views

Why doesn't WP_Image_Editor save images using the Filesystem API?

I was in the process checking some of my existing plugins for any unsafe filesystem accesses, when I ran across WP_Image_Editor's save function, which calls _save, which finally calls make_image (...
3
votes
1answer
955 views

Wordpress Image Editor doesn't update thumbs specified with `add_image_size()`

The title somewhat explains the issue. I have a template using bones. I am not sure if this matters or not. http://themble.com/bones/ In the functions.php file we add some additional thumbnail size ...
0
votes
1answer
208 views

Resize not resizing images with Capitial extension like JPG

I have used thie resize method to resize image and its working fine but only the problem which i am facing right now is that is not resizing image with extension in capital letter like JPG,JPEG,GIP. ...
1
vote
1answer
277 views

Multiple variables through wp_get_image_editor

I want to merge 2 images with imagick. I already know how to merge them with imagick, but I need to pass 2 variables through wp_get_image_editor to get this to work. I named the 2 variables $...
1
vote
2answers
982 views

Image rotation fails to regenerate custom sized thumbnail

I'm using custom image dimensions in functions.php like this: add_image_size( 'custom-size-thumbnail', 120, 120, true ); I uploaded some pictures with wrong orientation, so I used "edit" options to ...
1
vote
1answer
1k 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 ...
2
votes
2answers
2k views

Wordpress Uploader Editor shows broken image

I have the latest wordpress version installed. When I upload an image in the control panel for a post, I then go to edit it (crop an image for the thumbnail the way I want or rotate or do any kind of ...
3
votes
2answers
2k views

How to link to the image editor's Edit Image function?

How do I link to the image editor's Edit Image function from the front end? I know that I can open the lightbox with a simple link, such as <a href="wp-admin/media-upload.php?post_id=719&amp;...