I
I
ivasenkoartem2018-05-26 21:19:58
Ruby on Rails
ivasenkoartem, 2018-05-26 21:19:58

How to upload natural resolution images via MiniMagick?

I upload an image and specify its size:

version :big do
    process resize_to_fit: [1000, 1000]
end

But how to load it with the original size, and not with a limit of 1000x1000?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romanwb, 2018-06-01
@romanwb

Do not use (comment out) process, the version :big block is not required either.
The bare name of the original file will remain and the file itself will remain unchanged.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question