Tag Info

New answers tagged

1

Answering the X part of this XY problem, I would recommend you investigate the reason your binary file transfers don't transfer properly. If it turns out the reason is because you don't have an 8-bit clean datapath you could then use existing tools that were created to handle this situation, such as base64 or even uuencode. Old but still very effective. ...


1

od -An -vtx1 Check.tar > Check.txt You need -v or od will condense sequences of identical bytes. For the reverse: LC_ALL=C tr -cd 0-9a-fA-F < Check.txt | xxd -r -p > Check.tar Or: perl -ape '$_=pack "(H2)*", @F' Check.txt > Check.tar If your purpose is to transfer files over a channel that only supports ASCII text, then there are ...


0

To convert all .png and .bmp in the current directory and then remove the original files: mogrify -format jpg -quality 100 ./*.{png,bmp} rm ./*.{png,bmp} To convert all files except .jpg, if your shell supports extended globbing, e.g. bash: shopt extglob mogrify -format jpg -quality 100 ./*.!(jpg) rm ./*.!(jpg) or zsh: setopt extended_glob mogrify ...


0

The last line states: Add -strict experimental if you want to use it. so maybe try this: avconv -i jeff_western2.mp4 -r 24 -strict experimental jeff_24.mp4


0

You can always use the page title for name convention, so it should be unique. Given file with list of addresses, here is the one-liner: while read url; do wkhtmltopdf $url "$(curl -s $url | grep -o "<title>[^<]*" | tail -c+8).pdf"; done < urls.lst where urls.lst is your file with list of urls.


0

I rigged together a Ruby script (using Inkscape and ImageMagick as subroutines) pdfinvert. It proceeds as follows: Split PDF into individual pages. Convert each page to SVG. Invert colors┬╣ in the SVG; embedded PNG images are taken care of┬▓. Reconvert each page to PNG. Join pages together for the final result. It was designed for drawings but it may work ...


1

http://wkhtmltopdf.org/ should satisfy your HTML to PDF conversion needs. It can combine multiple input files and they can be on the web too.


0

got the same problem, and after fiddling a lot with the settings, an essential one is when saving, to have the compression (under the checkbox downsample) set to JPEG, and a reasonable quality (75 for instance). This really does the difference



Top 50 recent answers are included