Canvas Resize in 'MP 1.3.1 /

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

User avatar
Gerald_Ire
Posts: 67
Joined: Wed Nov 11, 2020 12:37 pm
Location: Germany

Canvas Resize in 'MP 1.3.1 /

Post 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
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...
You do not have the required permissions to view the files attached to this post.
-------------------------------------------------------------------------------
:D Gerald says thx to all! :D
user0
Posts: 184
Joined: Sat May 09, 2015 9:37 am

Re: Canvas Resize in 'MP 1.3.1 /

Post 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
User avatar
xnview
Author of XnView
Posts: 38702
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Canvas Resize in 'MP 1.3.1 /

Post by xnview »

presets are saved in xnview.ini>presets
Pierre.
User avatar
Gerald_Ire
Posts: 67
Joined: Wed Nov 11, 2020 12:37 pm
Location: Germany

Re: Canvas Resize in 'MP 1.3.1 /

Post by Gerald_Ire »

hi Pierre, thx for reply ... I'll go on the hunt..
Found 6x presets in xnview.ini...

Will post the result
-------------------------------------------------------------------------------
:D Gerald says thx to all! :D
User avatar
Gerald_Ire
Posts: 67
Joined: Wed Nov 11, 2020 12:37 pm
Location: Germany

Re: Canvas Resize in 'MP 1.3.1 /

Post 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
You do not have the required permissions to view the files attached to this post.
-------------------------------------------------------------------------------
:D Gerald says thx to all! :D