ImageProcessing-ElectronicPublications / photoquick

Light-weight image viewer with crop,resize,collage, photogrid and filters
GNU General Public License v3.0
4 stars 0 forks source link

Resize? #21

Closed zvezdochiot closed 3 years ago

zvezdochiot commented 4 years ago

Maybe?:

[Width]  [Height]  [Ratio]

Ratio = sqrt((Wnew * Hnew) / (W * H)) 

Not?

ksharindam commented 4 years ago

I dont understand. Please explain

zvezdochiot commented 4 years ago

Hi @ksharindam .

If you enter Width and Height, then Ratio = sqrt((Wnew * Hnew) / (W * H)).
If you enter Ratio, then Wnew = Ratio * W and Hnew = Ratio * H.
Default: Wnew = W, Hnew = H and Ratio = 1.0.