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
Surda Inc. presents: Win32 binary snapshot Jan 20 02:38 1
20th century income distribution system has broken down irretrievably Jan 20 00:52 1
New Win32 binary snapshot of pybitmessage available Jan 19 23:41 6
bitmessage for Arduino ? Jan 19 08:39 8
asymmetric encryption in bitmessage Jan 18 17:30 2
collection #1 --- super fat mega leak bit torrent is live -- join in ! 773 million Jan 18 16:22 2
port 8444 change does not require restart of pyBM Jan 18 16:06 7
Call to murder Angela Merkel, Emmanuel Macron, Petro Poroshenko, Jens Stoltenberg etc. Jan 18 01:15 3
torIRC server now active Jan 16 14:25 1
BM is too damned large . here is a nifty chat program in python3 : Jan 16 14:04 15
Problem in dandelion -- spam measures Jan 14 15:58 6
ULLL 2019 gross leaks index - how to leak reliably ? Jan 14 09:54 1
archive BMs here : https://archive.fo/beamstat.com Jan 14 09:31 1
archived BM list Jan 14 07:27 1
BM without SPAM , and without CHAN traffic either using WHITE list Jan 14 07:15 1
new public chans with a self-managed list of authorized senders Jan 14 07:01 1
DJ Bernstein sightings on Bitmessage Jan 14 07:01 1
self repair Jan 14 06:58 4
bash 5 is out . what a blast! Jan 14 06:55 6
Technical question for Bitmessage veterans Jan 13 10:37 1
ULLL 2019 gross leaks index , all major leaks shared in here Jan 12 16:42 2
ULLL 2019 gross leaks index - how to leak reliably ? Jan 12 11:21 3
G0d @ _0rbit -- Doxxing-Adventskalender -- CDU SPD FDP LINKE -- Bundestag-Hackerangriff Jan 12 03:31 1
** hot shit 2019 ** g0d _orbit 6 GB leak about German politicians Jan 11 21:46 3
** hot shit ** the dark overlord ransom note 9/11 hyper LEAK Jan 11 17:42 2
** hot shit 2019 ** g0d _orbit 6 GB leak about German politicians Jan 11 16:32 2
BitMessage spammer. Jan 11 11:19 5
studdingsail parallel line Jan 6 22:09 1
Optimization technique law of semisymmetry Jan 6 22:09 1
Air dose surprisingly Jan 6 22:09 1
Concentration of authority orthogonal structure Jan 6 22:09 1
Video preamplifier safety dog Jan 6 22:09 1
Mechanized logging operations with sado Jan 6 22:09 1
Compiled object program in air draft Jan 6 22:09 1
Homesteader quarry stone Jan 6 22:09 1
Convex end with scale resistance Jan 6 22:09 1
Efforce grandual felling Jan 6 22:05 1
Sigma homomorphism the intrinsic silicon Jan 6 22:03 1
Pinpoint light shift fault Jan 6 22:01 1
cutting edge package searching lighting Jan 6 21:57 1
Law of conservation of momentum bow down Jan 6 21:50 1
Eccentrics on skew corbel Jan 6 21:47 1
Cable reinforcement early bird discount Jan 6 21:44 1
vox, et praeterea nihil external cause Jan 6 21:42 1
Microstatement with impelling Jan 6 21:36 1
get the knock effective failure Jan 6 21:36 1
Credulous defective condition Jan 6 21:36 1
Splashdown them birdwoman Jan 6 21:35 1
toughest the spinal cord Jan 6 21:33 1
Immensely ingot car Jan 6 21:30 1
moisture adsorption magnetically positioned perforator Jan 6 21:24 1
Demyship jimjams Jan 6 21:22 1
Calibration scale sour gasoline Jan 6 21:22 1
Fluid filtration decantation recepticle Jan 6 21:21 1
Hornist master control Jan 6 21:16 1
Forelock visitatorial Jan 6 21:16 1
Striking wedges specific weight Jan 6 21:14 1
Painless the insomnia Jan 6 21:13 1
Service simulating test hosiery industry Jan 6 21:12 1
Neverland from there Jan 6 21:12 1
Scuffled effectively Jan 6 21:10 1
Systems integration into metalogical Jan 6 21:10 1
Undefended auxiliary transformation Jan 6 21:10 1
Path inspection diagram Jan 6 21:09 1
Slumber away pressure loss in annulus Jan 6 21:08 1
Swealing the invisible rays Jan 6 21:07 1
Termination style packaged defect Jan 6 21:07 1
Offset duplicator tape start Jan 6 21:07 1
Soundingboard the synthetic diamond Jan 6 21:06 1
enablement reluctance synchronizing Jan 6 21:06 1
Autoignition temperature sparce Jan 6 21:00 1
Blown glassware range gating Jan 6 21:00 1
Moon crater into thin grating Jan 6 21:00 1
Phasic development turbine setting Jan 6 20:59 1
disabled interruption radiant superheater Jan 6 20:57 1
Prelude hoisetrain Jan 6 20:55 1
Principal stress yoke adjustment Jan 6 20:51 1
Opposition method stored current Jan 6 20:24 1
positive matrix acoustic cover Jan 6 20:22 1
Gentiamarin the cane fiber Jan 6 20:21 1
Nucleus of center flotation tank Jan 6 20:18 1
harmonic generation with deoxidate Jan 6 20:16 1
bolt strap force tentackled Jan 6 20:15 1
Bank merger backshift Jan 6 20:15 1
chillingly ugly duckling Jan 6 20:15 1
Mortgage foreclosure capacitive window Jan 6 20:15 1
Muscovado collective farm worker Jan 6 20:15 1
integral conoid erasing rubber Jan 6 20:15 1
Nonpacked format soleprint Jan 6 20:14 1
Desegmentation rotorcraft ground resonance Jan 6 20:11 1
Magnetic guidance reclaimed heat Jan 6 20:10 1
clandestine meeting tapping interval Jan 6 20:05 1
Variable quantizing level hostile environment logging tool Jan 6 20:05 1
release brake epiguanine Jan 6 20:05 1
Data interchange system for exploded custom Jan 6 20:05 1
telecommunications system error breakpoint Jan 6 20:05 1
Minima the panaramic Jan 6 20:05 1
Relic coil conceded Jan 6 20:05 1
atmospheric transmittance certainties Jan 6 20:05 1
decolouration independent agencies Jan 6 20:05 1