Image > Draw... -- Possible to draw *outside* the image canvas

Bugs which have been reproduced by a second user or the developer, or features to do

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
cday
XnThusiast
Posts: 4394
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Image > Draw... -- Possible to draw *outside* the image canvas

Post by cday »

It is still possible to draw in the preview window outside the image canvas... :wink:

I believe that I have reported this bug before, it can result in lost time when the image canvas does not fill the preview window and has little or no colour contrast with the preview window background, when the image is saved the annotation is missing.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Image > Draw... -- Possible to draw *outside* the image canvas

Post by xnview »

you means that drawing must be clipped by image rect?
Pierre.
cday
XnThusiast
Posts: 4394
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Image > Draw... -- Possible to draw *outside* the image canvas

Post by cday »

It should only be possible to draw on the image canvas... :wink:

Screenshot from 2025-03-20 08-32-51.png
Screenshot from 2025-03-20 08-32-51.png (525.37 KiB) Viewed 363 times
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

Re: Image > Draw... -- Possible to draw *outside* the image canvas

Post by user0 »

there are 2 things:
1. OP's request to hide stuff that is outsize of canvas (like in MS Paint)
2. functionality to resize canvas should remain, eg via new controls (like in MS Paint)
cday
XnThusiast
Posts: 4394
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Image > Draw... -- Possible to draw *outside* the image canvas

Post by cday »

My bug report is only that it should not be possible to place text OUTSIDE the image canvas, the photograph of the aircraft, the image loaded... :wink:
Quelle horreur !

Other matters raised may be worthy of separate consideration.
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

Re: Image > Draw... -- Possible to draw *outside* the image canvas

Post by user0 »

hm.. for some reason I thought that having object outside of canvas automatically increase canvas size.

Ok, but invisible object should remain selectable while staying outside of the image canvas.
Also adding Layers pane will help managing stuff you add to the image until everything is rasterized.
cday
XnThusiast
Posts: 4394
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Image > Draw... -- Possible to draw *outside* the image canvas

Post by cday »

user0 wrote: Thu Mar 20, 2025 9:48 am ... invisible object should remain selectable while staying outside of the image canvas.
Also adding Layers pane will help managing stuff you add to the image until everything is rasterized.
I don't immediately understand, my bug report is simply that it should not be possible to place any annotation, text or otherwise, outside the image canvas,
which will not be present when the image is saved!
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

Re: Image > Draw... -- Possible to draw *outside* the image canvas

Post by user0 »

cday wrote: Thu Mar 20, 2025 10:15 am my bug report is simply that it should not be possible to place any annotation, text or otherwise, outside the image canvas
this is not a bug, check how it works in Photoshop, Krita or GIMP

it definitely should be possible to place anything outside of canvas, because:
1. you may need only part of the object visible on canvas
2. as a temporary solution to clean some space during editing

the only difference is how app display such objects:
- completely hiding them until selected (as apps above) OR
- reducing their opacity
- just showing them (XnView approach)
cday
XnThusiast
Posts: 4394
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Image > Draw... -- Possible to draw *outside* the image canvas

Post by cday »

I am not persuaded, but:

1. If so, a warning is needed when the Draw tool is closed if there are annotations in the Draw window that will not be saved;

2. If so, an option would be desirable to save either the canvas with the annotations on the canvas, or the draw window including drawn objects outside the canvas.

3. Is it possible to place an annotation outside the image canvas in XnView Classic, remember I am in Linux Mint and detest having to boot into Windows... :wink:

Present operation is best regarded as a bug that can waste users' time, it should not be possible to move the cursor outside the image rectangle, and any extension of the operation should be intentional with appropriate control options provided! :bug:
Post Reply