You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. In output, i get a rotated version. How i can avoid this? In input jpg i have vertical image, in output webp – horizontal, Can't find option in api to control this behaviour
The text was updated successfully, but these errors were encountered:
Hi, I had the same problem and it was because the exif metadata of the image was missing.
Can you try something like this?
importimageminfrom"imagemin";importimageminWEBPfrom"imagemin-webp";constfiles=awaitimagemin(["sources/*.{jpg,png,jpeg}"],{destination: "build",plugins: [imageminWEBP({metadata: ["exif"],// or you can put ['all']}),],});console.log(files);
Hello. In output, i get a rotated version. How i can avoid this? In input jpg i have vertical image, in output webp – horizontal, Can't find option in api to control this behaviour
The text was updated successfully, but these errors were encountered: