1

So, I have a problem and my initial question is: Is this possible?

I'm allowing people to customize the appearance of something using css, and then once they save it I want to turn it into thumbnails to use to display it in various other places (in other sizes maintaining that same aspect ratio).

So the question is, is it possible to do something where I render that partial, then it's saved to an image that I can upload to aws in various sizes etc. using paperclip? Once I get the image I can do the paperclip part, but it's getting that partial to render the html/css and save that to an image... Thoughts?

Just know, any help and/or thoughts at all would be great!

Thanks,

Mike

Mike Fogg
  • 559
  • 6
  • 16
  • 2
    This might help you: http://stackoverflow.com/questions/4563707/rails-convert-html-to-image – MrYoshiji Nov 14 '12 at 18:25
  • Ah, that's perfect! Ugh, I thought I tried googling everything... apparently far from it. If you could post that as the answer I'd mark it as right. Though, I'm not 100% sure what the proper stack overflow etiquette is here... maybe I should just erase the question ha. – Mike Fogg Nov 14 '12 at 19:57

1 Answers1

1

This might help you:

rails convert html to image

Community
  • 1
  • 1
MrYoshiji
  • 54,334
  • 13
  • 124
  • 117