Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please disable default image sharpening in the VIPS backend #113

Open
pyridine opened this issue Aug 30, 2023 · 0 comments
Open

Please disable default image sharpening in the VIPS backend #113

pyridine opened this issue Aug 30, 2023 · 0 comments

Comments

@pyridine
Copy link

pyridine commented Aug 30, 2023

Hi, this is related to carrierwaveuploader/carrierwave#2481 and #67
Default image sharpening was disabled a while back in the ImageMagick backend, but not in the VIPS backend. I think it should be disabled by default in both. The default sharpening behavior is not expected and can degrade/change the image quality.

Here are the results of resizing an image in VIPS vs ImageMagick:

Base image
base image
Converted with ImageMagick backend
converted with imagemagic backend, it appears the same
Converted with VIPS backend
converted with vips backend, it looks worse

As with the original issue, the ImageMagick-processed image has not changed (much?), while VIPS-processed image appears lower quality, or at least different, which is not expected.

I used this code:

processed = ImageProcessing::Vips # or MiniMagick
  .source(base_image)
  .resize_to_fit(1280,720) # the image is already this size, so this shouldn't change anything
  .convert("png")
  .call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant