Search found 13 matches

by vonbiber
2016-08-17T23:46:36-07:00
Forum: Users
Topic: Take partial screenshot with import
Replies: 1
Views: 4257

Re: Take partial screenshot with import

on my linux system I would do it this way
(my screen size is 1600 x 900)

Code: Select all

W=1600
H=900
w=$((W/2))
h=$((H/2))

import -w root -crop +${w}-$h +repage TopLeftCorner.png
by vonbiber
2016-07-17T01:11:25-07:00
Forum: Users
Topic: Crop -- resize camera pics?
Replies: 3
Views: 3536

Re: Crop -- resize camera pics?

I would do this

Code: Select all

convert input_image -auto-orient -thumbnail '800x600>' output_image
by vonbiber
2016-07-15T23:43:51-07:00
Forum: Users
Topic: how to Watermark all images in sub folders use tile
Replies: 28
Views: 26954

Re: how to Watermark all images in sub folders use tile

Follow the steps suggested by Fred. Perhaps it would be easier to read the results if you modified the script thus: #!/bin/bash TOP=/mnt/hgfs/L/BaiduYunDownload/tempL/temppic LOG=/tmp/piclog.txt cd $TOP || exit 1 rm -f $LOG for each in "$(find * -type f -name '*.jpg')" do echo "$each" >> $LOG done ...
by vonbiber
2016-07-15T02:20:33-07:00
Forum: Users
Topic: how to Watermark all images in sub folders use tile
Replies: 28
Views: 26954

Re: how to Watermark all images in sub folders use tile

[root@localhost tempL]# du -k "/mnt/hgfs/L/BaiduYunDownload/tempL/temppic/2016.02.22 [정홍빛은유혹] 분2 68G/test (2).jpg" 0 /mnt/hgfs/L/BaiduYunDownload/tempL/temppic/2016.02.22 [정홍빛은유혹] 분2 68G/test (2).jpg [root@localhost tempL]# According to your script this file wouldn't be processed because du -k "/mnt ...
by vonbiber
2016-07-14T07:38:55-07:00
Forum: Users
Topic: how to Watermark all images in sub folders use tile
Replies: 28
Views: 26954

Re: how to Watermark all images in sub folders use tile

Run your command du to the file mentioned by Fred: du -k "your test file here" What do you get? sorry, i do not know how to chage, can you provide entire code for me to test, my English is poor, thanks What is the result of this command: du -k "/mnt/hgfs/L/BaiduYunDownload/tempL/temppic/2016.02.22 ...
by vonbiber
2016-07-14T05:38:05-07:00
Forum: Users
Topic: how to Watermark all images in sub folders use tile
Replies: 28
Views: 26954

Re: how to Watermark all images in sub folders use tile

Run your command

Code: Select all

du
to the file mentioned by Fred:

Code: Select all

du -k "your test file here"
What do you get?
by vonbiber
2016-07-13T23:20:02-07:00
Forum: Users
Topic: how to Watermark all images in sub folders use tile
Replies: 28
Views: 26954

Re: how to Watermark all images in sub folders use tile

my code: #!/bin/bash for each in "$(find /mnt/hgfs/L/BaiduYunDownload/tempL/temppic/* -type f -name '*.jpg')" do s=`du -k [color=#FF0000]$each[/color] | awk '{print $1}'` if [ $s -gt 10 ]; then convert -resize 766 -quality 75 [color=#FF0000]$each[/color] [color=#FF0000]$each[/color] convert /mnt ...
by vonbiber
2016-07-13T09:59:41-07:00
Forum: Users
Topic: how to Watermark all images in sub folders use tile
Replies: 28
Views: 26954

Re: how to Watermark all images in sub folders use tile

I have Replaced the for command with for each in `find /mnt/hgfs/L/tempL -name '*.jpg'` now it can work well but here are new problem, if the sub folder name contain special characters such as Korean word, special characters, it run wrong, how to process folder name that contain special characters ...
by vonbiber
2016-07-12T00:25:46-07:00
Forum: Users
Topic: how to Watermark all images in sub folders use tile
Replies: 28
Views: 26954

Re: how to Watermark all images in sub folders use tile

You could use the unix command 'find' to traverse all folders and subfolders. Provided your pictures are all jpg, something like that will list all the jpg files found in the top directory /mnt/hgfs/L/tempL and its subfolders: #!/bin/bash find /mnt/hgfs/L/tempL/* -type f -name '*.jpg' | while read ...
by vonbiber
2016-05-16T10:48:35-07:00
Forum: Users
Topic: Need help batch combining/overlaying different folders of images
Replies: 3
Views: 4175

Re: Need help batch combining/overlaying different folders of images

something like this, assuming your images are all *.png replace A, B, C to the actual paths of your folders A, B, C Test it before using it (use echo, e.g., echo "convert $f $g -append $C/$(printf "merged%04d.png" $i) #!/bin/sh A=/path/to/folderA B=/path/to/folderB C=/path/to/folderC ls $B/*.png ...
by vonbiber
2011-04-09T03:29:04-07:00
Forum: Users
Topic: Exist an image format in ascii/ansi ?
Replies: 4
Views: 11018

Re: Exist an image format in ascii/ansi ?

In the texmf distribution there is a tool that allow you to convert a dvi file to png:
dvipng [options] yourfile.dvi
(you can 'man dvipng' for more details)
There's a similar tool for a gif output: dvigif
by vonbiber
2009-09-01T05:43:47-07:00
Forum: Users
Topic: framebuffer version of the 'import' command
Replies: 1
Views: 4567

Re: framebuffer version of the 'import' command

never mind
I found 2 framebuffer-based screenshooters:

fbdump and fbshot

I built them on slackware and slax

The (stripped) binaries are between 10 and 11K

http://www.rcdrummond.net/fbdump/index.html
http://www.sfires.net/fbshot/
by vonbiber
2009-08-18T08:55:38-07:00
Forum: Users
Topic: framebuffer version of the 'import' command
Replies: 1
Views: 4567

framebuffer version of the 'import' command

I was wondering if it was possible in future releases to have
'import' letting us switch to the framebuffer graphic device
when we don't have an X session open
and the possibility of taking a screenshot of a different tty than the
one we're running 'import'