Opened 3 hours ago
Last modified 8 minutes ago
#63757 new defect (bug)
The crop function doesn't work with ai generated PNG
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.8.2 |
Component: | General | Keywords: | has-screenshots reporter-feedback |
Focuses: | Cc: |
Description
"I'm using WordPress 6.8.2. The bug occurs both on my live website and locally with XAMPP. I generated a PNG image with ChatGPT, uploaded it to the media library, and used the crop tool. I applied the crop and saved the result. However, when I insert the image into a page, it appears uncropped.
I Attach the image so you can test it
Attachments (8)
Change History (21)
#1
@
3 hours ago
- Keywords reporter-feedback added
Hello @linopolo
Can you try to add the image, and then go to the right sidebar > Block > Resolution and Select Full Size or Thumbnail?
I'm not 100% sure, but it feels that the cropped Large size is not being generated correctly.
#2
@
2 hours ago
Ok it works.
To run a more accurate test, I converted the generated image to JPG, then uploaded it to the library, cropped and inserted it into the page. The problem persists. On the other hand, a regular PNG taken from Google retains the cropping.
#3
@
89 minutes ago
Can it be that the C2PA data is blocking the conversion?
Check your image on
https://contentcredentials.org/verify
and you will see it has content credentials
#4
follow-up:
↓ 5
@
87 minutes ago
yes the image has C2PA data I updated also the complete exif of the image
#5
in reply to:
↑ 4
@
84 minutes ago
Replying to linopolo:
yes the image has C2PA data I updated also the complete exif of the image
Can you also upload the JPG you mentioned before?
#6
@
72 minutes ago
Ok here's the the jpg
#7
@
63 minutes ago
I stripped the JUMBF data entirely from the original png:
@
62 minutes ago
#8
@
56 minutes ago
Thank you for the support. So, at this point, what will happen? Will there be any changes to WordPress? Or should I just stick to the first suggestion you gave me?
#9
follow-up:
↓ 10
@
50 minutes ago
Oh wait, my mistake. I did push the 'update' button instead of 'Save Edits'. I'm sorry.
#10
in reply to:
↑ 9
@
45 minutes ago
Replying to Presskopp:
Oh wait, my mistake. I did push the 'update' button instead of 'Save Edits'. I'm sorry.
I bet it's not a metadata problem. @linopolo try with another of those "AI-generated images", with different dimensions. Instead of 1024×1536, try with a square image 600x600, for example. I have a feeling that there coudl be an edge case bug.
#11
@
41 minutes ago
The issue seems to be the generation of the 'large' size only, as you mentioned before.
#12
@
18 minutes ago
Ok, I generated by chatGPT a 600 x 600 image png. I converted it in jpg.
I Uploaded all two on the library, cropped both then inserted in a page and it works.
Now I upload the two images for yout test
image