...
This commit is contained in:
BIN
examples/tools/imagemagick/.backup/large_png.png.0
Normal file
BIN
examples/tools/imagemagick/.backup/large_png.png.0
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 MiB |
27
examples/tools/imagemagick/example.v
Normal file
27
examples/tools/imagemagick/example.v
Normal file
@@ -0,0 +1,27 @@
|
||||
module main
|
||||
|
||||
import freeflowuniverse.herolib.conversiontools.imagemagick
|
||||
import gittools
|
||||
|
||||
fn do() ! {
|
||||
if !imagemagick.installed() {
|
||||
panic('need imagemagick')
|
||||
}
|
||||
|
||||
mut gs := gittools.get(root: '/tmp/code')!
|
||||
|
||||
url := 'https://github.com/threefoldfoundation/www_examplesite/tree/development/src'
|
||||
mut gr := gs.repo_get_from_url(url: url, pull: false, reset: false)!
|
||||
gr.remove_changes()!
|
||||
|
||||
path := gr.path_content_get() // path of the manual
|
||||
|
||||
imagemagick.scan(path: path, backupdir: '/tmp/backupimages')!
|
||||
|
||||
// remove changes so we can do again
|
||||
// gr.remove_changes()!
|
||||
}
|
||||
|
||||
fn main() {
|
||||
do() or { panic(err) }
|
||||
}
|
||||
BIN
examples/tools/imagemagick/large_png.png
Normal file
BIN
examples/tools/imagemagick/large_png.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 MiB |
1
examples/tools/imagemagick/not_an_img.md
Normal file
1
examples/tools/imagemagick/not_an_img.md
Normal file
@@ -0,0 +1 @@
|
||||
This is not an image
|
||||
BIN
examples/tools/imagemagick/small_png.png
Normal file
BIN
examples/tools/imagemagick/small_png.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 171 KiB |
Reference in New Issue
Block a user