Skip to content

Commit

Permalink
Updated navi cheat sheets.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhnza committed Oct 11, 2024
1 parent a769777 commit 79eef1b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .local/share/navi/cheats/misc.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,22 @@ zip -r <input_dir> <output_zip>
$ input_dir: fd -t d -d 1 -X printf '%q\n'

;-------------------------------------------------------------------------------
; pdf
; magick
;-------------------------------------------------------------------------------
% pdf, linux
% magick, linux

# Convert images to PDF file
convert <image_files> <output_pdf>
magick <image_files> <output_pdf>

# Convert images to GIF file
magick -delay 10 -loop 0 <image_files> <output_gif>

$ image_files: fd '(.png|.jpg|.jpeg)$' -X printf '%q\n' --- --multi --expand

;-------------------------------------------------------------------------------
; pdf
;-------------------------------------------------------------------------------
% pdf, linux

# Extract all images from a PDF file
pdfimages -p -all <pdf_file> <output_prefix>
Expand All @@ -66,7 +76,6 @@ pdfjam <pdf_file> <page_ranges> -o <output_file>
ps2pdf <pdf_file> <output_file>

$ pdf_file: fd -e pdf -X printf '%q\n'
$ image_files: fd '(.png|.jpg|.jpeg)$' -X printf '%q\n' --- --multi --expand

;-------------------------------------------------------------------------------
; update
Expand Down

0 comments on commit 79eef1b

Please sign in to comment.