Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Provide a direct way to embed raw image data #195

Closed
madriska opened this Issue Feb 7, 2011 · 2 comments

Comments

Projects
None yet
4 participants
@ghost

ghost commented Feb 7, 2011

It's not easy to pass raw image data into Prawn::Document#image. If it sees a String, it expects it to be a filename. Can we allow image data itself to be passed in?

Member

bradediger commented Feb 7, 2011

Oops, that was me. Logged in under the wrong account.

Member

yob commented Dec 8, 2012

Raw image data can be passed in by wrapping the data in a StringIO.

Not very intuitive maybe, but is it enough? Maybe we can improve the doc and/or manual around this?

@practicingruby practicingruby removed the stale label Mar 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment