Way to create a new canvas of specified colour

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

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

Way to create a new canvas of specified colour

Post by cday »

As far as I know there is currently no way to create a new blank canvas in XnView software?
User avatar
deus-ex
Posts: 171
Joined: Mon Sep 20, 2004 7:24 pm
Location: Earth

Re: Way to create a new canvas of specified colour

Post by deus-ex »

No, not from scratch. Here's a workaround:

Create new canvas with specified background color
  • load any image
  • resize Canvas [Shft+C] with desired background color
  • copy small selection of new background
  • select all [Ctrl+A]
  • paste [Ctrl+V]
  • save result to new file
cday
XnThusiast
Posts: 3976
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Way to create a new canvas of specified colour

Post by cday »

Thanks for the workaround, but I think a direct method specifying the desired canvas size and colour would be a useful addition... :D
User avatar
deus-ex
Posts: 171
Joined: Mon Sep 20, 2004 7:24 pm
Location: Earth

Re: Way to create a new canvas of specified colour

Post by deus-ex »

Yes of course, the workaround is meant as a (hopefully) temporary workaround. :)
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Way to create a new canvas of specified colour

Post by m.Th. »

+1
I would do it like this:

File | New...

And then, as @cday said, a dialog appears with the dimensions (W x H) and the Color.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Way to create a new canvas of specified colour

Post by xnview »

See issue for current status and some details.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Way to create a new canvas of specified colour

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.94. Please check and confirm the bug fix here.
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Way to create a new canvas of specified colour

Post by m.Th. »

Pfff... Pierre... I would renounceδ for a long time to search this feature if I wouldn't love you. Yes, I am serious.
I would add it also in the File \ New.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
deus-ex
Posts: 171
Joined: Mon Sep 20, 2004 7:24 pm
Location: Earth

Re: Way to create a new canvas of specified colour

Post by deus-ex »

xnview wrote: Tue Sep 17, 2019 10:20 am This problem is supposed to be fixed in XnView MP 0.94. Please check and confirm the bug fix here.
Hi Pierre, I'm not the original poster of this issue, but I'd like to confirm that it is indeed partially fixed. The background of an existing image now is filled entirely with the desired color upon canvas resize.

However, there is no functionality yet to create a new blank image from scratch, as was requested by cday above.
cday
XnThusiast
Posts: 3976
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Way to create a new canvas of specified colour

Post by cday »

deus-ex wrote: Sun Dec 20, 2020 1:25 am However, there is no functionality yet to create a new blank image from scratch, as was requested by cday above.
Yes there is, it was originally placed in the browser, but by popular request was moved to the viewer: File > New image... :D
User avatar
deus-ex
Posts: 171
Joined: Mon Sep 20, 2004 7:24 pm
Location: Earth

Re: Way to create a new canvas of specified colour

Post by deus-ex »

Oh well, I managed to overlook the New File entry both in the browser and the edit mode. My only excuse is that it was quite late at the time I posted my reply above.

Operating the New File dialog with the keyboard needs some improvement, though. Pressing the Tab key, the cursor walks through the options in an unusual pattern. Currently, the cursor starts at the second entry "Height" on the left which isn't clearly visible as the input field is not highlighted. From "Height" the cursor moves up to "Width", then to the right and down to "DPI", then up to "Mode which again is not highlighted, then down below to "Background color", then down to "OK" and finally right to "Cancel".

Opening the New File dialog the cursor should start at the top left entry "Width". Then cycling through the options with the Tab key the cursor should go to "Height", then "Mode", "DPI", "Background color", "OK" and "Cancel".
Post Reply