Convert PDF uploads to Images
-
Brian Michalski
- Tag changed from v2 to pdf, upload, v2
-
August
- Milestone order changed from 0 to 0
This could probably just be resolved by using RMagick. I just tested the following code which seemed to accomplish what you want.
pdf = Magick::ImageList.new("test.pdf")
pdf.write("test.jpg")Multi-page pdfs get named test.jpg.0 etc
-
Brian Michalski
Nice find August! This is much cleaner than our command-line system call a la V1.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.