How Can I Save Image In JPG Format ???

View: New views
4 Messages — Rating Filter:   Alert me  

How Can I Save Image In JPG Format ???

by james35 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I have linux ubuntu 7.04 and I use Imagemagick (version 7:6.2.4.5) to see images that I create with Octave. The problem is that I need to save these images not in the Octave's format (.img, right ?), but in JPG format. Imagemagick has a menù which it is possible to choose the option "save" using the mouse, but I want to save the image in JPG format from the console of octave, directly, using a command. Exist a command or a function that allows me to make this?

Thank You !!!

Re: How Can I Save Image In JPG Format ???

by Søren Hauberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


fre, 18 01 2008 kl. 09:39 -0800, skrev james35:
> Hi,
> I have linux ubuntu 7.04 and I use Imagemagick (version 7:6.2.4.5) to see
> images that I create with Octave. The problem is that I need to save these
> images not in the Octave's format (.img, right ?), but in JPG format.
> Imagemagick has a menù which it is possible to choose the option "save"
> using the mouse, but I want to save the image in JPG format from the console
> of octave, directly, using a command. Exist a command or a function that
> allows me to make this?

You want the 'imwrite' function from the 'image' package. You can
download this package from http://octave.sf.net.

Søren

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: How Can I Save Image In JPG Format ???

by Thomas Weber-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Am Freitag, den 18.01.2008, 19:21 +0100 schrieb Søren Hauberg:

> fre, 18 01 2008 kl. 09:39 -0800, skrev james35:
> > Hi,
> > I have linux ubuntu 7.04 and I use Imagemagick (version 7:6.2.4.5) to see
> > images that I create with Octave. The problem is that I need to save these
> > images not in the Octave's format (.img, right ?), but in JPG format.
> > Imagemagick has a menù which it is possible to choose the option "save"
> > using the mouse, but I want to save the image in JPG format from the console
> > of octave, directly, using a command. Exist a command or a function that
> > allows me to make this?
>
> You want the 'imwrite' function from the 'image' package. You can
> download this package from http://octave.sf.net.

I'd say
        print("/tmp/image.jpeg")
should do it.

        Thomas

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: How Can I Save Image In JPG Format ???

by mel viso :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

install jpgsave following the instructions at

http://www.iw-net.org/index.php?title=Jpgsave