Login  Register

Re: Saved image includes Pixel Inspection Tool marker

Posted by Wayne Rasband-2 on Feb 13, 2020; 4:03pm
URL: http://imagej.273.s1.nabble.com/Saved-image-includes-Pixel-Inspection-Tool-marker-tp5022932p5022943.html

> On Feb 13, 2020, at 8:15 AM, J. Lewis Muir <[hidden email]> 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?

This bug is fixed in the latest ImageJ daily build (1.52u9).

-wayne

>
> 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