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

Possible to upload several formats of some image? #2469

Closed
srikanthreddy919 opened this issue Apr 16, 2020 · 1 comment
Closed

Possible to upload several formats of some image? #2469

srikanthreddy919 opened this issue Apr 16, 2020 · 1 comment
Labels

Comments

@srikanthreddy919
Copy link

I have an issue while creation multiple versions with .png and .jpg formats for the same upload but i am unable to get .jpg version of image. I am uploading .png image but in the versions i can see only .png version. Anybody pls help on this, many thanks.

my code here

version :medium, :if => :image? do
    def store_dir
      "uploads/#{model.id}"
    end
     process resize_to_fit: [ 200, 200 ]
     process convert: :png
  end

version :large, :if => :image? do
    def store_dir
      "uploads/#{model.id}"
    end
    process resize_to_fit: [ 500, 500 ]
    process convert: :jpg
  end
@mshibuya
Copy link
Member

Dup of #2125.

@mshibuya mshibuya closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants