Question

I'm using paperclip and generating thumbnails for uploaded pdf's. They work fine except for when viewed in IE8. Anyone know why this is?

  has_attached_file :file, :styles => { :thumb => "140x140>" }

  validates_attachment :file, presence: false,
                              content_type: { content_type: "application/pdf" },
                              size: { less_than: 3.megabytes }
Was it helpful?

Solution

I was able to work around this by adding jpg as the default thumbnail image.

has_attached_file :file, :styles => { :thumb => ["140x140>", :jpg] }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top