Skip to content

Latest commit

 

History

History

image

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Watermark removal with ImageMagick

convert "$1" "$NON_TRANSPARENT_WATERMARKS" -compose DivideSrc -composite -quality 100 "${2%.*}.jpg"
#convert "$1" "$NON_TRANSPARENT_WATERMARKS" +level 0,66% ..."
# Usage
find -maxdepth 1 -type f | parallel dewatermark.sh {} out/{}
find ./out/ -maxdepth 1 -type f | parallel jpeg-recompress {} optimized/{/}

BGP image format

JPEG manipulations

Lossy minification

Lossless compression

JPEG artifacts removal

Enlarging

Scaling

Super-Resolution demo

Super-Resolution From a Single Image

Imitation with ImageMagick:

convert                       \
   small.png                  \
  -colorspace RGB             \
  +sigmoidal-contrast 11.6933 \
  -define filter:filter=Sinc  \
  -define filter:window=Jinc  \
  -define filter:lobes=3      \
  -resize 400%                \
  -sigmoidal-contrast 11.6933 \
  -colorspace sRGB            \
   better-quality-enlargement.png

Editors

Invalidate objects on Amazon CloudFront

alias encodeURIComponent='perl -pe '\''s/([^a-zA-Z0-9_.!~*()'\''\'\'''\''-])/sprintf("%%%02X",ord($1))/ge'\'
cat $URL_LIST|while read -r URL;do echo -n "$URL"|encodeURIComponent;echo;done|sed -e 's|%2F|/|g'