Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Convert PDF uploads to Images

#87

PDF file uploads should be converted to images which can be displayed. The pdf file should be saved as the 'original' and the converted image should be stored as the 'image'. Concerto 1.x uses a command line utility to do this, possibly pdf2jpg?

These sort of upload conversions should NOT be in the controller, preferably in a library or module so additional conversions can easily be added.

Reported by Brian Michalski · June 5th, 2010 @ 01:57 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Brian Michalski
    Brian Michalski
    • Tag changed from v2 to pdf, upload, v2

    June 5th, 2010 @ 01:59 PM

  2. August
    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

    April 12th, 2011 @ 04:22 PM

  3. Brian Michalski
    Brian Michalski

    Nice find August! This is much cleaner than our command-line system call a la V1.

    April 12th, 2011 @ 08:44 PM

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.