#87 new
Brian Michalski

Convert PDF uploads to Images

Reported by Brian Michalski | 2010-06-05 13:57:24 UTC

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.

Comments and changes to this ticket

  • Brian Michalski

    Brian Michalski 2010-06-05 13:59:24 UTC

    • Tag changed from “v2” to “pdf, upload, v2”
  • August

    August 2011-04-12 16:22:34 UTC

    • 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

    Brian Michalski 2011-04-12 20:44:39 UTC

    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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Concerto is an open source digital signage system that makes it easy to engage a large community of people with graphical and text-based announcements, bulletins, and other messages... but enough about us, you came here to get involved.


If you think you've found a bug in Concerto, please click 'Create new ticket' and let us know about it.


Looking to peek at our source code? Head to https://github.com/concerto/concerto_v1 (Concerto version 1) or https://github.com/concerto/concerto (Concerto version 2).


Our getting started guide is available here: https://github.com/concerto/concerto/wiki/Getting-Involved.

Tags

Pages