Resizing jpg photo leads to raster artifacts
Resizing the image leads to a raster artifact across the entire image. If you look closely, you should see it in the screenshot. If I just convert to png (or jpg for that matter) without resizing, the artifacts don't appear so I believe it has to do with the resizing.
```
$ git rev-parse HEAD
86e82282664169dfaa004a85ac5bc75c2bc95c40
$ cargo run -- ~/Pictures/372CANON/IMG_9863.JPG -resize 3240x2160 ~/Downloads/raster.jpg
```
<img width="859" height="622" alt="Image" src="https://github.com/user-attachments/assets/bac9707c-8529-4740-baba-4844b848f7bf" />
This doesn't happen with `magick`.
```
$ magick ~/Pictures/372CANON/IMG_9863.JPG -resize 3240x2160 ~/Downloads/raster-magick.jpg
```
<img width="371" height="405" alt="Image" src="https://github.com/user-attachments/assets/cc666f45-d1eb-4881-889e-002376d2f3f8" />
关闭于 2025-10-16 10 条评论