Login  Register

Converting Images

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Converting Images

tim123
2 posts
Hi,

I am working in excel and trying to import a 16 bitt Tiff image into excel. I have not been able to do this so I am trying to write a macro that converts an image to a jpeg in ImageJ from the command line but I am having a lot of difficulty. I was just going to say the picture in the same folder as a JPEG and then import that picture. Thanks for any advice!
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Converting Images

Adam Hughes
52 posts
Unix OS have a command line tool to convert image formats. Check out the
convert command
On Jun 11, 2013 9:04 AM, "tim123" <[hidden email]> wrote:

> Hi,
>
> I am working in excel and trying to import a 16 bitt Tiff image into excel.
> I have not been able to do this so I am trying to write a macro that
> converts an image to a jpeg in ImageJ from the command line but I am having
> a lot of difficulty. I was just going to say the picture in the same folder
> as a JPEG and then import that picture. Thanks for any advice!
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Converting-Images-tp5003335.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Converting Images

Michael Schmid
2136 posts
In reply to this post by tim123
Hi Tim,

use the macro recorder, Plugins>Macros>Record, and perform the steps manually:
- Open the tiff image
- Adjust brightness&contrast as you like (if required, maybe use the 'Auto' button of the B&C panel)
- Save as Jpeg

For running ImageJ with that macro from the command line, see
  http://rsb.info.nih.gov/ij/docs/guide/146-18.html#toc-Section-18

If you pass the filename from the commandline, you have to use getArgument() in the macro:

e.g.
  > ImageJ -macro myConvertMacro.ijm /DiskE/data/myImage.tif
and in the macro
  open(getArgument());

Michael
________________________________________________________________
On Jun 11, 2013, at 15:46, tim123 wrote:

> Hi,
>
> I am working in excel and trying to import a 16 bitt Tiff image into excel.
> I have not been able to do this so I am trying to write a macro that
> converts an image to a jpeg in ImageJ from the command line but I am having
> a lot of difficulty. I was just going to say the picture in the same folder
> as a JPEG and then import that picture. Thanks for any advice!

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Converting Images

Jim Passmore-2
26 posts
In reply to this post by Adam Hughes
On Tue, Jun 11, 2013 at 11:20 AM, Adam Hughes <[hidden email]>wrote:

> Unix OS have a command line tool to convert image formats. Check out the
> convert command
>

Tim,
This is likely part of the ImageMagick package, installed on many Linux
systems.  It's a very useful utility, especially for command line and batch
processing of images.  It's available for Windows from www.imagemagick.org.
There's also the similar GraphicsMagick at www.graphicsmagick.org which
should accomplish the same thing.


*--
Jim Passmore*
Research Associate
Sealed Air Corporation

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Converting Images

Antoinette
44 posts
For rendering and converting excel to tiff image or tiff file to excel document, you can use an image document converter to convert single Excel page or multiple Excel spreadsheets to multi-page TIFF file.