Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/bin/bash :' Ok, so finding the right brighness-contrast ratio for clean edge detection is a pain in the butt, and I dont want a huge number of output files to weed through So i made this script to walk though, using eye of gnome to monitor the output as it changes If you wanted, you could create test.svg and open your image viewer before hand. edge arg is line width drawn on edges, 2.5 here. ' #convert input.jpg -brightness-contrast 20x50 -edge 1 output.jpg out="test.svg" for i in `ls *.png` do for j in {10..90..10} do for k in {10..90..10} do convert $i -brightness-contrast $jx$k -edge 2.5 $out echo $j x $k sleep 1 done done done
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)