Graphic file formats


(Peefh) #1

Hi.

I’m looking for some graphic file formats I could use in ruby.
My (old?) doc says .gif, .pgm or .ppm .
I don’t want to use .gif, .pgm is black and white and .ppm tanslates
files to very big ones.
I think that .jpg has tpp much loss…

What file format may I use, and where can I find usefull ruby-drivers
for it?

Thank you.
Merci.

···


Ceci est une signature automatique de MesNews.
Site : http://mesnews.no-ip.com


(Nobuyoshi Nakada) #2

Hi,

At Sun, 22 Feb 2004 21:19:51 +0900,
Peefh wrote in [ruby-talk:93394]:

What file format may I use, and where can I find usefull ruby-drivers
for it?

PNG with Ruby/GD?

···


Nobu Nakada


(Chris Pine) #3

Hello,

I recently started using RMagick and I love it. I think it only runs on
Linux (not sure), so I hope that’s not a problem. I just grabbed them both
from portage on gentoo and they work great!

At first I started using PNGs to save my images. (It’s for a family picture
website, so I’m scaling down the pictures from huge, printable sizes to
reasonable sizes, and also generating thumbnails.) They looked great, but
were kind of large (a problem for some of my relatives with slower
connection speeds). So I tried jpg, and they still look pretty damn good.
Unfortunately, I couldn’t figure out how to change the compression level,
but fortunately they default to a pretty good balance between size and image
quality (unlike GIMP, which defaults to “more artifacts than Egypt, but in
15k or less!”)

Chris


(Gerard A.W. Vreeswijk) #4

http://ftp.ruby-lang.org/pub/ruby/binaries/mingw/1.8/ext/ruby-GD-0.7.4-i386-mingw32-1.8.tar.gz


(Simon Strandgaard) #5

I have RMagick installed on FreeBSD box. I guess it also runs on windows?

···

On Sun, 22 Feb 2004 23:40:45 +0900, Chris Pine wrote:

I recently started using RMagick and I love it. I think it only runs on
Linux (not sure), so I hope that’s not a problem. I just grabbed them both
from portage on gentoo and they work great!


Simon Strandgaard


(Kent S.) #6

I have successfully compiled RMagic on Windows XP with MingW, but thanks
god I’ve got my Powerbook now :-).

/kent

Chris Pine wrote:

···

Hello,

I recently started using RMagick and I love it. I think it only runs on
Linux (not sure), so I hope that’s not a problem. I just grabbed them both
from portage on gentoo and they work great!


(Tim Hunter) #7

Yes, the doc for this is sorta hidden. Sorry. Specify “quality” when you
write the image:

img.write(‘mypic.jpg’) { self.quality = 50 }

The default is 75.

···

On Sun, 22 Feb 2004 23:40:45 +0900, Chris Pine wrote:

slower connection speeds). So I tried jpg, and they still look pretty
damn good. Unfortunately, I couldn’t figure out how to change the
compression level, but fortunately they default to a pretty good balance


(Peefh) #8

Il se trouve que "nobu.nokada@softhome.net" a formulé :

Hi,

At Sun, 22 Feb 2004 21:19:51 +0900,
Peefh wrote in [ruby-talk:93394]:

What file format may I use, and where can I find usefull ruby-drivers
for it?

PNG with Ruby/GD?

GD seems to be the good tool I’d like to use, and PNG the best format.
Does someone knows an easy way to install and configure GD in a
Windows PC running Ruby, whitch doesn’t know /usr/local/… and so on?
Thank you.

···


Ceci est une signature automatique de MesNews.
Site : http://mesnews.no-ip.com


(Shashank Date) #9

“Simon Strandgaard” neoneye@adslhome.dk wrote in message
news:pan.2004.02.22.14.51.19.105492@adslhome.dk

I recently started using RMagick and I love it. I think it only runs
on

Linux (not sure), so I hope that’s not a problem. I just grabbed them
both

from portage on gentoo and they work great!

I have RMagick installed on FreeBSD box. I guess it also runs on windows?

The readme says: RMagick does not run on MS Windows except with Cygwin.

···

On Sun, 22 Feb 2004 23:40:45 +0900, Chris Pine wrote:


#10

In article AW4_b.14358$ld7.6720@bignews3.bellsouth.net,

···

Kent S. happy@user.com wrote:

I have successfully compiled RMagic on Windows XP with MingW, but thanks
god I’ve got my Powerbook now :-).

Amen, brother!

BTW: do you use RMagic on your PowerBook? I imagine that you have to get
the ImageMagic first (for X, no doubt). Also, what about OS X’s image
conversion program (forget what it’s called) - can it be driven from Ruby?

Phil