Support » Fixing WordPress » How to save resized images to Media library through the Page/Posts editor?

  • davehprohoods

    (@davehprohoods)


    When we copy an image from our site to the WordPress editor, it saves to the Media library as the original size even if we change the dimensions in the Advanced image editor (it just sets width and height in the img tag). We’re trying to figure out how to save the image to the Media library at the actual size it’s pasted into the editor. Ripping hair out!

    Right now we have to save the image to our computer, edit it in MS Paint (Windows 7), resize by pixels, then upload it again through the editor. This can be too complicated for the average WordPress user, so there must be an easier way. I could find no options or plugins to do this yet.

    Can anyone recommend a plugin we could use that doesn’t over-complicate the editor?

    I read that WordPress actually has a class (WP_Image_Editor) that I can run functions to resize with PHP GD or Imagemagick, but I’m not sure how to plug it into the editor. It would be really great to just have this option in the image editor or on the Visual editor bar!

    Here’s the class I’m talking about:
    https://codex.wordpress.org/Class_Reference/WP_Image_Editor

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    We’re trying to figure out how to save the image to the Media library at the actual size it’s pasted into the editor.

    Resize the image yourself before adding it to WordPress.

    That’s not the WordPress solution. Like I say, this may not be for the average WordPress user.

    Can anyone please provide any suggestions for a plugin or how to hook the WP_Image_Editor class to the TinyMCE editor?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to save resized images to Media library through the Page/Posts editor?’ is closed to new replies.