Skip to content

Is sharpening enabled or not? #78

@collimarco

Description

@collimarco

After upgrading to Rails 6.1 I noticed a change in the thumbnail image quality... they seem a little bit blurred. I don't know if this happened some months ago or after the upgrade, however I think that the quality of images was better 1 year ago when we decided the compression options.

Then I have also found this:
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#active-storage-now-requires-image-processing

Now I am really confused and I cannot find a clear documentation about sharpening and other options enabled by default by this gem.

  1. Does resize apply sharpening automatically?
  2. Does resize_to_fit/limit/fill apply sharpening automatically?
  3. Is sharpening applied automatically by this gem in the following case (that doesn't use resize and doesn't use resize_to_*)?
  image.variant({
      geometry: '600x300^',
      gravity: 'center',
      crop: '600x300+0+0',
      'sampling-factor': '4:2:0',
      strip: true,
      quality: 85,
      interlace: 'JPEG',
      colorspace: 'sRGB'
  })

Thanks in advance for the clarification

Version: image_processing 1.12.1 (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions