Page 1 of 1

Canvas Resize in 'MP 1.3.1 /

Posted: Fri Nov 04, 2022 1:30 pm
by Gerald_Ire
Hello my dear XnView'ers :-)

Checking the "Canvas Resize" option for company I found out it takes the content of "ResizePreset.txt" - thats cool :D

Taking one number from "Presets" shows Canvas option "Position" is always "Top left" for the the image. But we need Canvas around with image centered...

20221103_Canvas and ResizePreset-txt.png
20221103_Canvas and ResizePreset-txt.png (13.31 KiB) Viewed 776 times
When changing this "Position" to "Center" and save it under the same name I'll get a new entry in the Canvas-Presets with same name.
The ResizePreset.txt stays the same... so far so good..

Q.1: where does this new Canvas Preset gets saved? Coudnt find it in xnview.ini..
Q.2: would it be nice to save this in an "CanvasPreset.xml" - maybe?

Not sure if "overwriting the ResizePreset.txt" instead would be pos or any good...

Re: Canvas Resize in 'MP 1.3.1 /

Posted: Sat Nov 05, 2022 8:00 pm
by user0
Gerald_Ire wrote: Fri Nov 04, 2022 1:30 pm Q.1: where does this new Canvas Preset gets saved? Coudnt find it in xnview.ini..
Q.2: would it be nice to save this in an "CanvasPreset.xml" - maybe?
Have the same questions )
have not found presets in XnView.dll, maybe there is another sqlite file with settings

Also have few suggestions reagarding file organisation

Re: Canvas Resize in 'MP 1.3.1 /

Posted: Tue Nov 08, 2022 4:16 pm
by xnview
presets are saved in xnview.ini>presets

Re: Canvas Resize in 'MP 1.3.1 /

Posted: Wed Nov 09, 2022 6:42 am
by Gerald_Ire
hi Pierre, thx for reply ... I'll go on the hunt..
Found 6x presets in xnview.ini...

Will post the result

Re: Canvas Resize in 'MP 1.3.1 /

Posted: Wed Nov 23, 2022 3:30 pm
by Gerald_Ire
Found a solution in two steps:

1) "Resize image" to max length (width or heigth -depense on image size) to special px size (sample height 1080 px)
2) use "Canvas Resize" and ad color left & righ or up & below. Sample 1920 x 1080 px

sample: 1920 x 1080 px
20221123_screenshot_003110.png
Can I do this in one step - only with option "Canvas Resize"?
I think there is an option from "Resize" missing to do so: "Resample / Longest side/Shortest side"
20221123_xnviewmp_canvas resize option.png
What do you think, is it poss to do this in one step... ?
20221123_screenshot_003107.png