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

Not applied to versions #12

Open
jmuheim opened this issue Mar 28, 2020 · 0 comments
Open

Not applied to versions #12

jmuheim opened this issue Mar 28, 2020 · 0 comments

Comments

@jmuheim
Copy link

jmuheim commented Mar 28, 2020

This is a very nice gem.

Sadly, although I have applied the process :optimize in the model's namespace, it does only apply to the original file, and not to any version.

class ImageUploader < AbstractUploader
  include CarrierWave::ImageOptim

  process optimize: [{
    pngquant: {allow_lossy: true}
  }]

  version :print do
    process border: ['black']

    # Why do we have to re-apply this here?
    process optimize: [{
      pngquant: {allow_lossy: true}
    }]
  end
end

Any idea what's going on here?

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