working pic converter

BM-2cWy7cvHoq3f1rYMerRJp8PT653jjSuEdY
Oct 19 10:49 [raw]

http://base64image.org <img src="data:..." >

BM-2cTDyveFXoTsoMvsm6rGQdq7s8fFQ8Jazj
Oct 19 12:26 [raw]

facepalm this should be done offline -aa- http://m6su7s3ir7dxggwg.onion/haades/darknet/src/branch/master/img2html.sh img2html.sh #!/bin/bash # convert image file to html code # and copy html to clipboard # needs: imagemagick xclip # license = Unlicense = public domain # author = haades 2018-10-17 # bitmessage = BM-2cTDyveFXoTsoMvsm6rGQdq7s8fFQ8Jazj # git = http://m6su7s3ir7dxggwg.onion/haades/darknet # lower quality = smaller files quality=20 # in percent # split base64 date into lines of length wrap=72 # 0 to disable # arguments for imagemagick convert a='' a="$a -strip" # remove exif tags a="$a -interlace Plane" # progressive #a="$a -colorspace Gray" # colors to grayscale #a="$a -gaussian-blur 0.05" # blur #a="$a +dither -colors 32 -depth 8" # reduce colors a="$a -quality $quality" # compress image file="$1" shift # unset first argument a="$a $@" # append all other arguments to $a if [ -z "$file" ] then n=$(basename "$0") echo "usage: $n image_file [convert_arguments]" echo "samples:" echo " $n infile.jpg -scale 50%" exit 1 fi echo -n 'size original ' cat "$file" | wc -c #type=$(identify -format "%m" "$file" | tr '[A-Z]' '[a-z]') type=image/jpeg # we convert all to jpeg b64=$(convert "$file" $a jpeg:- | base64 -w $wrap -) echo -n 'size compressed ' echo "$b64" | wc -c echo writing html to clipboard echo use control + V to paste echo "<img src='data:..." | xclip -i -selection clipboard ## write html to file #echo "<img src='data:..." >"$file.html"

BM-2cWy7cvHoq3f1rYMerRJp8PT653jjSuEdY
Oct 19 15:52 [raw]

lol, you don't need imagemagick for such trivial operation: #!/usr/bin/env python from email.MIMEImage import MIMEImage if __name__ == '__main__': import imghdr import sys from argparse import ArgumentParser prog = ArgumentParser( description="Convert image to HTLM data URI") prog.add_argument('imgfile', help="path to image file") args = prog.parse_args() imgtype = imghdr.what(args.imgfile) with open(args.imgfile, 'rb') as src: msg = MIMEImage(src.read(), imgtype) sys.stdout.write('<img src="data:..."/>')

BM-2cTDyveFXoTsoMvsm6rGQdq7s8fFQ8Jazj
Oct 19 17:20 [raw]

so you read only 4 lines of my code? it also does remove exif tags from jpeg images jpeg progressive format jpeg compress image and takes any arguments for imagemagick convert like img2html.sh file.jpg -scale 50% or img2html.sh file.jpg -scale 50% -quality 10 it also compares filesize before and after compression now do that in pure python : P -aa-

BM-2cWy7cvHoq3f1rYMerRJp8PT653jjSuEdY
Oct 19 19:20 [raw]

#!/bin/sh temp_dir="/tmp" out_file=$temp_dir/bitmsg.txt if [ ! -d $temp_dir ]; then mkdir -p $temp_dir fi cp $1 $temp_dir/result.jpg convert $1 -define jpeg:extent=180kb $temp_dir/result.jpg echo '<font color=red><h1>---</h1></font><br>' > $out_file echo '<img src="data:...

[chan] bitmessage
BM-2cWy7cvHoq3f1rYMerRJp8PT653jjSuEdY

Subject Last Count
BM Nov 20 04:26 2
Vuvuzela - anonymous messaging that scales to millions of users Nov 19 11:56 25
How do I benchmark bitmessage PoW Nov 15 22:13 3
Support request -- GPUs (Intel(R) HD Graphics IvyBridge M GT1) did not calculate correctly Nov 15 17:04 2
Spam... Nov 15 17:02 4
Ebola on the rampage in USA again Nov 13 06:47 1
ending the waffle Nov 13 04:56 7
forwarding in BM Nov 12 15:04 5
Dear Freemasons Nov 12 07:13 2
CSS3 in Bitmessage interface Nov 12 06:56 1
Pastwatch & Aqua Distributed Version Control Nov 11 11:56 1
SOLUTION for spam Nov 11 11:56 23
Vuvuzela - Metadata-private messaging Nov 11 11:56 1
tes Nov 9 11:19 2
I'm back Nov 9 03:35 8
Bitmessage Network Health Report Nov 7 23:48 12
nodejs clientr KEWLIO Nov 7 07:26 4
Scalability Idea Nov 7 07:24 7
Do NOT spam Nov 7 03:09 8
here is the trick to run pyBM on a server without trouble Nov 5 18:41 8
Scalability Question?? Nov 5 09:09 3
re Re: Scalability Question?? Nov 5 08:21 1
aaa Nov 5 02:48 1
Bitmessage Plugins Nov 3 21:33 3
Any nodejs interface to the bitmessage api yet? Nov 3 19:12 2
Recent API status bug Nov 2 12:38 9
zero bundle -- 0net Nov 2 10:41 4
zero git on 0net Nov 1 12:43 6
(no subject) Nov 1 02:48 5
greetings Oct 31 23:05 3
Re: Oct 31 22:25 1
{ ^ } break { ^ } Oct 31 22:11 1
(no subject) Oct 31 14:33 4
INVALID FORMAT Oct 31 12:12 6
hello world Oct 31 07:40 1
Is there anybody out there? Oct 30 08:03 1
join the darknet - be badass at leakswldjpesnuvn.onion Oct 29 20:33 5
more cores, slower pyBM Oct 29 01:36 15
new bitboard thread Oct 27 17:17 3
http://leakswldjpesnuvn.onion seems stable Oct 27 16:36 1
spot the spammer Oct 27 09:37 3
oniontkryve46opu.onion Oct 27 09:01 2
3 BM websites and all fucked Oct 26 21:00 12
Newcomer Oct 26 18:36 10
135453 Oct 25 22:06 1
Stay in touch Oct 25 13:06 1
new BM site online Oct 25 10:39 3
134730 Oct 25 09:59 1
BM is flatlining : https://beamstat.com/obj Oct 25 08:13 9
a new bitboard went online Oct 25 02:10 4
BM is flatlining : https://beamstat.com/obj Oct 25 00:23 1
sql Oct 24 22:44 1
how I hacked BM Oct 24 22:11 3
--curses mode with bitboard crashy Oct 24 21:30 5
BMF bug Oct 24 04:21 1
onion4442sx7tvvk.onion ONION 444 new website for BM ! hot shit ! Oct 24 04:21 3
running pyBM as daemon on a remote server Oct 24 04:21 9
post with \ backskash Oct 24 04:21 1
BM is flatlining : https://beamstat.com/obj 1200 bytes the average object Oct 24 04:17 2
how I hacked BM Oct 24 04:17 3
secret bin for Bitmessage people Oct 24 04:16 2
post with \ backskash Oct 24 04:11 1