mirror of
https://github.com/cheat/cheat.git
synced 2025-09-02 18:18:30 +02:00
Explicitly mark comment lines in builtin sheets.
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
To resize an image to a fixed width and proportional height:
|
||||
# To resize an image to a fixed width and proportional height:
|
||||
convert original-image.jpg -resize 100x converted-image.jpg
|
||||
|
||||
To resize an image to a fixed height and proportional width:
|
||||
# To resize an image to a fixed height and proportional width:
|
||||
convert original-image.jpg -resize x100 converted-image.jpg
|
||||
|
||||
To resize an image to a fixed width and height:
|
||||
# To resize an image to a fixed width and height:
|
||||
convert original-image.jpg -resize 100x100 converted-image.jpg
|
||||
|
||||
To resize an image and simultaneously change its file type:
|
||||
# To resize an image and simultaneously change its file type:
|
||||
convert original-image.jpg -resize 100x converted-image.png
|
||||
|
||||
To resize all of the images within a directory:
|
||||
To implement a for loop:
|
||||
# To resize all of the images within a directory:
|
||||
# To implement a for loop:
|
||||
for file in `ls original/image/path/`;
|
||||
do new_path=${file%.*};
|
||||
new_file=`basename $new_path`;
|
||||
|
Reference in New Issue
Block a user