Skip to content

*.jpg is not generated for scaled full size image. #122

@mitogh

Description

@mitogh

Steps to replicate

2022-01-20_19-02

Image meta data stored in WordPress

Metadata of the image.
=> array(6) {
  ["width"]=>
  int(1707)
  ["height"]=>
  int(2560)
  ["file"]=>
  string(55) "2022/01/philip-myrtorp-hDBdvjk1b0s-unsplash-scaled.webp"
  ["sizes"]=>
  array(7) {
    ["medium"]=>
    array(4) {
      ["file"]=>
      string(48) "philip-myrtorp-hDBdvjk1b0s-unsplash-200x300.webp"
      ["width"]=>
      int(200)
      ["height"]=>
      int(300)
      ["mime-type"]=>
      string(10) "image/webp"
    }
    ["large"]=>
    array(4) {
      ["file"]=>
      string(49) "philip-myrtorp-hDBdvjk1b0s-unsplash-683x1024.webp"
      ["width"]=>
      int(683)
      ["height"]=>
      int(1024)
      ["mime-type"]=>
      string(10) "image/webp"
    }
    ["thumbnail"]=>
    array(4) {
      ["file"]=>
      string(48) "philip-myrtorp-hDBdvjk1b0s-unsplash-150x150.webp"
      ["width"]=>
      int(150)
      ["height"]=>
      int(150)
      ["mime-type"]=>
      string(10) "image/webp"
    }
    ["medium_large"]=>
    array(4) {
      ["file"]=>
      string(49) "philip-myrtorp-hDBdvjk1b0s-unsplash-768x1152.webp"
      ["width"]=>
      int(768)
      ["height"]=>
      int(1152)
      ["mime-type"]=>
      string(10) "image/webp"
    }
    ["1536x1536"]=>
    array(4) {
      ["file"]=>
      string(50) "philip-myrtorp-hDBdvjk1b0s-unsplash-1024x1536.webp"
      ["width"]=>
      int(1024)
      ["height"]=>
      int(1536)
      ["mime-type"]=>
      string(10) "image/webp"
    }
    ["2048x2048"]=>
    array(4) {
      ["file"]=>
      string(50) "philip-myrtorp-hDBdvjk1b0s-unsplash-1365x2048.webp"
      ["width"]=>
      int(1365)
      ["height"]=>
      int(2048)
      ["mime-type"]=>
      string(10) "image/webp"
    }
    ["post-thumbnail"]=>
    array(4) {
      ["file"]=>
      string(50) "philip-myrtorp-hDBdvjk1b0s-unsplash-1568x2352.webp"
      ["width"]=>
      int(1568)
      ["height"]=>
      int(2352)
      ["mime-type"]=>
      string(10) "image/webp"
    }
  }
  ["image_meta"]=>
  array(12) {
    ["aperture"]=>
    string(1) "0"
    ["credit"]=>
    string(0) ""
    ["camera"]=>
    string(0) ""
    ["caption"]=>
    string(0) ""
    ["created_timestamp"]=>
    string(1) "0"
    ["copyright"]=>
    string(0) ""
    ["focal_length"]=>
    string(1) "0"
    ["iso"]=>
    string(1) "0"
    ["shutter_speed"]=>
    string(1) "0"
    ["title"]=>
    string(0) ""
    ["orientation"]=>
    string(1) "0"
    ["keywords"]=>
    array(0) {
    }
  }
  ["original_image"]=>
  string(39) "philip-myrtorp-hDBdvjk1b0s-unsplash.jpg"
}

This happens due to the new "full size" being scaled down to match the threshold from WordPress and prevents having a fallback *.jpg for the scaled size (full size).

Image used for testing this behavior.

philip-myrtorp-hDBdvjk1b0s-unsplash

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)[Type] BugAn existing feature is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions