Issue 624 in webp: Webp encoding cli auto rotates certain output photos seemingly randomly.

453 views
Skip to first unread message

nolan… via monorail

unread,
Oct 9, 2023, 5:15:37 PM10/9/23
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 624 by nolan...@gmail.com: Webp encoding cli auto rotates certain output photos seemingly randomly.
https://bugs.chromium.org/p/webp/issues/detail?id=624

What steps will reproduce the problem?
1. Run a batch command in a bash terminal to encode all images in a directory to webp.

2. Use the command:
for f in *; do cwebp -q 80 "$f" -o "${f%.*}.webp"; done

What is the expected output? What do you see instead?

I expect to see all the photos converted in the same orientation as the originals. However some photos were flipped to landscape instead of staying in portrait.

What version of the product are you using? On what operating system?

v. 1.3.1 windows x64


Please provide any additional information below.

--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

jz… via monorail

unread,
Oct 9, 2023, 7:24:03 PM10/9/23
to webp-d...@webmproject.org

Comment #1 on issue 624 by jz...@google.com: Webp encoding cli auto rotates certain output photos seemingly randomly.
https://bugs.chromium.org/p/webp/issues/detail?id=624#c1

Thanks for the report. The images most likely contain Exif or XMP data controlling the rotation. cwebp won't apply this when encoding, so you'll see the unrotated image. You can copy the metadata from the source image using -metadata exif, -metadata xmp or -metadata all [1].

[1]: https://developers.google.com/speed/webp/docs/cwebp#additional_options

jz… via monorail

unread,
Dec 18, 2023, 9:03:23 PM12/18/23
to webp-d...@webmproject.org
Updates:
Status: Done

Comment #2 on issue 624 by jz...@google.com: Webp encoding cli auto rotates certain output photos seemingly randomly.
https://bugs.chromium.org/p/webp/issues/detail?id=624#c2

(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages