From: David Vallner Date: 2006-10-03T05:13:52+09:00 Subject: Re: Embed Images in eruby --------------enig33CC85BB2D0C7FE3ACE33744 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Horacio Sanson wrote: > I want to read an image from disk, modify it with rmagick (scale) and d= isplay=20 > it in an HTML IMG tag but without saving the modified image to disk.=20 >=20 > Is there a way to send the Image object directly to the IMG tag?? >=20 > Something like: >=20 > <% > require "RMagick" > include Magick >=20 > img =3D Image.read("image.jpg").first >=20 > ## Do stuff to img.... like scale it down.... > %> >=20 > "> >=20 http://www.ietf.org/rfc/rfc2397.txt Warning. Base64, madness, and death lie that way. Well, not really, but I don't think it works in IE. David Vallner --------------enig33CC85BB2D0C7FE3ACE33744 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFIXMAy6MhrS8astoRAv3UAJwP56S1XU72RC36jgu1CPHO/zXxuQCeJv91 Udi2hURlqRYtG8A2g+n6kpw= =CaSi -----END PGP SIGNATURE----- --------------enig33CC85BB2D0C7FE3ACE33744--