Is it possible to validate that a png image does not have transparency in it using the paperclip gem? I've looked everywhere and can't seem to find out how to do this. I am currently just using a front end javascript solution for this but I'd prefer not to rely on client side validation.
Asked
Active
Viewed 68 times
1 Answers
0
paperclip
use imagemagick to work(convert, resize) with images. You should use it to detect transparency.
Look into this answer Detect Alpha Channel with ImageMagick
I think will be easier validate uploaded png image before to put it a model with paperclip.

Alex Kojin
- 5,044
- 2
- 29
- 31