• Hi

    I have upload a picture (peggy-sues-diner.jpg), with an original size of 2988 × 5312.
    When I go to the media library and press edit WordPress show the full image at orginal size. Very big. Example URL\peggy-sues-diner.jpg

    The other images I have uploaded in 5312 x 2988 is served at 900×506.
    Example: URL\Image-900×506.jpg

    I have tried to debug it and while I’m no expert it seems that the function “image_downsize” in wp-includes\media.php can’t find a matching image to show and therefore shows the full size.

    I guess it is because the image is rotated it fails ?
    But is there a fix I can do for it ?

    I have these images in the upload folder:

    peggy-sues-diner-150×150.jpg
    peggy-sues-diner-338×600.jpg
    peggy-sues-diner-576×1024.jpg
    peggy-sues-diner-670×300.jpg
    peggy-sues-diner-230×230.jpg
    peggy-sues-diner-1018×460.jpg
    peggy-sues-diner-474×342.jpg
    peggy-sues-diner.jpg
    peggy-sues-diner-45×45.jpg
    peggy-sues-diner-506×900.jpg

    I guess this right one t0 show is peggy-sues-diner-506×900.jpg

    Thanks

    Henrik

Viewing 3 replies - 1 through 3 (of 3 total)
  • First at all you can add the width tag at 100 %. Lookslike this example: <img src=”pic_mountain.jpg” alt=”Mountain View” style=”width:100%”>

    You can edit something in your settings –> Media.

    When you click on the image on a page or post, you get a pencil. When you click on the pencil, you can change the size of the image.

    Or you have to resize them with Photoshop or another (online) photo editing software.

    Thread Starter Henrik

    (@gpsleg)

    Hi MichaelvdBerg

    Thanks for answer, but it’s not the size of the image itself there is a problem.
    It’s when I edit the image (in admin area) that WordPress can’t find out to display the smaller image, thus resolving to show the full size.

    Only happens on rotated images.
    I think it is a bug in WordPress.

    Hello Henrik,

    Just wanted to add one thing to MichaelvdBerg’s great answer. He, of course, meant to edit the images BEFORE you bring them into WordPress. If you’re a photographer (it’s my hobby as well), you generally generate hundreds to thousands of images. So, reducing image sizes can be tedious if you have to go through a lot of images. If you are using Photoshop, I highly recommend using the Actions option that they provide in order to make a batch change. This option allows you create a single action, then apply it to multiple files/folders. I looked around and found this tutorial which can walk you through the process, if you need the help: https://thenorthernfoundry.com/how-to-batch-crop-resize-images/.

    It’s a great way to save time by simply selecting a folder of images, and then hitting the action to optimize the images into the size(s) that you want to use for WordPress.

    Have fun!
    Arnel C.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit a image is showing full size’ is closed to new replies.