Paperclip for PDFs

If you are using paperclip and find that thumbnails are not being generated for pdf files and you have checked that identify and convert are on your path, then perhaps the answer is to specify a format in the styles hash. If this is not specified, pdfs remain as pds. so do something like

has_attached_file :image,
  :styles => {
    :edit   => ['600x600', :png],
    :medium => ['400x400', :png],
    :thumb => ['100x100', :png]

Hope this saves someone having to dive into paperclip code (as nice as it is)