Login  Register

Re: Saved image includes Pixel Inspection Tool marker

Posted by Herbie on Feb 13, 2020; 1:54pm
URL: http://imagej.273.s1.nabble.com/Saved-image-includes-Pixel-Inspection-Tool-marker-tp5022932p5022933.html

Good day Lewis,

I've just tested it (IJ-version 1.52t) and realized that the selected area
is in fact an overlay. When saving images with overlays in JPG- or
PNG-format, they are flattened, i.e. the overlay is imprinted onto the
image. This behavior isn't a bug.

What you can do, if you don't like the red square being imprinted, is go to
"Image >> Overlay >> Remove Overlay".

Regards

Herbie

:::::::::::::::::::::::::::::::::::::::::::

J. Lewis Muir-2 wrote

> Hello!
>
> In ImageJ 1.52s, if I select the Pixel Inspection Tool and click on a
> pixel in an image and then save the image as GIF, JPEG, or PNG, the
> red box indicating the selected pixel of the Pixel Inspection Tool is
> included in the image!  This is very surprising and undesirable.  I
> think this must be a bug.  Can anyone confirm?
>
> I found that this does not occur (i.e., the red box is not included in
> the saved image) if I instead save as TIFF or BMP.
>
> Here's how to reproduce:
>
> 1. Choose File > New > Image.
>
> 2. Accept the defaults (e.g., 8-bit, fill with black, 512x512 pixels)
>    and click OK.
>
> 3. Select the Pixel Inspection Tool.
>
> 4. Click somewhere in the image on a pixel (e.g., x=75, y=75) which
>    displays a small red box indicating the pixel that is currently being
>    inspected.
>
> 5. Choose File > Save As > Gif (or Jpeg or PNG).
>
> 6. Open the saved image with a different image viewer and observe that
>    the red box is in the image!
>
> Thank you!
>
> Lewis
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html





--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html