feat: add vips jpegsave
parent
2094bfbff0
commit
bfd870d963
|
@ -451,10 +451,14 @@ f2 --find <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">
|
||||||
<div class="highlight highlight-source-shell">
|
<div class="highlight highlight-source-shell">
|
||||||
<pre><span class="pl-c"><span class="pl-c">#</span> Add --vips-progress to show progress</span>
|
<pre><span class="pl-c"><span class="pl-c">#</span> Add --vips-progress to show progress</span>
|
||||||
vips jxlsave filename.jpg filename.jxl --keep=none
|
vips jxlsave filename.jpg filename.jxl --keep=none
|
||||||
|
vips jpegsave filename.png filename.jpg --keep=none
|
||||||
|
|
||||||
<span class="pl-c"><span class="pl-c">#</span> Batch convert (require fd)</span>
|
<span class="pl-c"><span class="pl-c">#</span> Batch convert (require fd)</span>
|
||||||
fd <span class="pl-s"><span class="pl-pds">"</span>jpg|jpeg|png|webp<span class="pl-pds">"</span></span> --exec vips jxlsave {} {.}.jxl --keep=none
|
fd <span class="pl-s"><span class="pl-pds">"</span>jpg|jpeg|png|webp|gif<span class="pl-pds">"</span></span> --exec vips jxlsave {} {.}.jxl --keep=none
|
||||||
fd <span class="pl-s"><span class="pl-pds">"</span>jpg|jpeg|png|webp<span class="pl-pds">"</span></span> --exec-batch rm
|
fd <span class="pl-s"><span class="pl-pds">"</span>jpg|jpeg|png|webp|gif<span class="pl-pds">"</span></span> --exec-batch rm
|
||||||
|
|
||||||
|
fd <span class="pl-s"><span class="pl-pds">"</span>png|webp|gif<span class="pl-pds">"</span></span> --exec vips jpegsave {} {.}.jpg --keep=none
|
||||||
|
fd <span class="pl-s"><span class="pl-pds">"</span>png|webp|gif<span class="pl-pds">"</span></span> --exec-batch rm
|
||||||
|
|
||||||
<span class="pl-c"><span class="pl-c">#</span> Rotate</span>
|
<span class="pl-c"><span class="pl-c">#</span> Rotate</span>
|
||||||
vips rot filename.jxl new_filename.jxl d90</pre>
|
vips rot filename.jxl new_filename.jxl d90</pre>
|
||||||
|
|
|
@ -320,10 +320,14 @@ Convert:
|
||||||
```sh
|
```sh
|
||||||
# Add --vips-progress to show progress
|
# Add --vips-progress to show progress
|
||||||
vips jxlsave filename.jpg filename.jxl --keep=none
|
vips jxlsave filename.jpg filename.jxl --keep=none
|
||||||
|
vips jpegsave filename.png filename.jpg --keep=none
|
||||||
|
|
||||||
# Batch convert (require fd)
|
# Batch convert (require fd)
|
||||||
fd "jpg|jpeg|png|webp" --exec vips jxlsave {} {.}.jxl --keep=none
|
fd "jpg|jpeg|png|webp|gif" --exec vips jxlsave {} {.}.jxl --keep=none
|
||||||
fd "jpg|jpeg|png|webp" --exec-batch rm
|
fd "jpg|jpeg|png|webp|gif" --exec-batch rm
|
||||||
|
|
||||||
|
fd "png|webp|gif" --exec vips jpegsave {} {.}.jpg --keep=none
|
||||||
|
fd "png|webp|gif" --exec-batch rm
|
||||||
|
|
||||||
# Rotate
|
# Rotate
|
||||||
vips rot filename.jxl new_filename.jxl d90
|
vips rot filename.jxl new_filename.jxl d90
|
||||||
|
|
Loading…
Reference in New Issue