It is currently Sat Jul 20, 2024 8:26 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: resize proportional, utility g'mic custom command.
PostPosted: Sat Nov 01, 2014 9:19 am  (#1) 
Offline
GimpChat Member

Joined: Oct 11, 2014
Posts: 82
# -------------------------------
#@gmic resize_prop : pixel size
#@gmic : resize the largest side of the image (w or h)
#@gmic : to pixel size and the other in proportion

resize_prop : -check ${1}>0
-if {w>h}
  -resize $1,{h/(w/$1)}
-else
  -resize {w/(h/$1)},$1
-endif
# ------------------------------------



$ gmic -h resize_prop

gmic: GREYC's Magic for Image Computing.

Version 1.6.0.2 (beta), Copyright (c) 2008-2014, David Tschumperle.
(http://gmic.eu/)

-resize_prop:
pixel size

resize the largest side of the image (w or h)
to pixel size and the other in proportion


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Can't resize brush

23

No new posts Attachment(s) [solved]quickly resize patterns

7

No new posts Attachment(s) HELP - SEARCH AND RUN A COMMAND

6

No new posts How do you run GIMP from the command line?

1

No new posts Attachment(s) Edit with Gimp Command File

10



* Login  



Powered by phpBB3 © phpBB Group