Login  Register

Re: Saved image includes Pixel Inspection Tool marker

Posted by Stein Rørvik on Feb 13, 2020; 2:00pm
URL: http://imagej.273.s1.nabble.com/Saved-image-includes-Pixel-Inspection-Tool-marker-tp5022932p5022934.html

I agree with Herbie, this is not a bug but the intended behaviour.

I do this often; I insert overlays containing scalebars and markings with arrows, annotated boxes etc and then save as a TIFF first to create an "original" image with the annotations as a removable overlay; then I save the image as a PNG or JPG to have the annotations "burnt in" for easy inclusion in a report or sharing by email.

Stein

-----Original Message-----
Sent: 13. februar 2020 14:54
To: [hidden email]
Subject: Re: Saved image includes Pixel Inspection Tool marker

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