Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
8 3 bytes, explanation
source | link

ImageMagick displaydisplay -fx, 73 7 18 24 bytes

-negate

or

-fx 1-u

The ImageMagick tool display with the fx parameter can apply the above "programs"program to a png given as the parameter and display the results on screen.

Check out my post on meta about ImageMagick as a programming language. I wrote a prime tester over there as a proof of concept. I am not yet clear on whether or not it

Re byte counting, display -fx code filename is legitimate to omit the "-fx " and get this score downequivalent to 3 bytesperl -e code filename, where we traditionally count just code for length.

ImageMagick display, 7 18 24 bytes

-negate

or

-fx 1-u

The ImageMagick tool display can apply the above "programs" to a png given as the parameter and display the results on screen.

Check out my post on meta about ImageMagick as a programming language. I wrote a prime tester over there as a proof of concept. I am not yet clear on whether or not it is legitimate to omit the "-fx " and get this score down to 3 bytes

ImageMagick display -fx, 3 7 18 24 bytes

1-u

The ImageMagick tool display with the fx parameter can apply the above program to a png given as the parameter and display the results on screen.

Check out my post on meta about ImageMagick as a programming language. I wrote a prime tester over there as a proof of concept.

Re byte counting, display -fx code filename is equivalent to perl -e code filename, where we traditionally count just code for length.

7 remove shell wrapper
source | link

shell + ImageMagickImageMagick display, 187 18 24 bytes

display -negate $1

display is part of the imagemagick or graphicsmagick image manipulation packages, it has all the functionality of convert or

-fx 1-u

The ImageMagick tool mogrifydisplay but sendscan apply the resultabove "programs" to a gui window instead of a destination filepng given as the parameter and display the results on screen.

PS: forcing this intoCheck out my post on meta about ImageMagick as a shell script rather than running it directly is silly, and it's three bytes smallerprogramming language. I wrote a prime tester over there as a direct command line (where the _$1 is implicit),proof of concept. I am not yet clear on whether or 11 bytes smaller if we acceptnot it is legitimate to omit the IM tools as program interpreters themselves so I don't have"-fx " and get this score down to count mogrify_3 bytes

shell + ImageMagick, 18 24 bytes

display -negate $1

display is part of the imagemagick or graphicsmagick image manipulation packages, it has all the functionality of convert or mogrify but sends the result to a gui window instead of a destination file.

PS: forcing this into a shell script rather than running it directly is silly, and it's three bytes smaller as a direct command line (where the _$1 is implicit), or 11 bytes smaller if we accept the IM tools as program interpreters themselves so I don't have to count mogrify_

ImageMagick display, 7 18 24 bytes

-negate

or

-fx 1-u

The ImageMagick tool display can apply the above "programs" to a png given as the parameter and display the results on screen.

Check out my post on meta about ImageMagick as a programming language. I wrote a prime tester over there as a proof of concept. I am not yet clear on whether or not it is legitimate to omit the "-fx " and get this score down to 3 bytes

6 added 81 characters in body
source | link

shell + ImageMagick, 18 24 bytes

display -negate $1

display is part of the imagemagick or graphicsmagick image manipulation packages, it has all the functionality of convert or mogrify but sends the result to a gui window instead of a destination file.

PS: forcing this into a shell script rather than running it directly is silly, and it's three bytes smaller as a direct command line (where the " $1"_$1 is implicit)., or 11 bytes smaller if we accept the IM tools as program interpreters themselves so I don't have to count mogrify_

shell + ImageMagick, 18 24 bytes

display -negate $1

display is part of the imagemagick or graphicsmagick image manipulation packages, it has all the functionality of convert or mogrify but sends the result to a gui window instead of a destination file.

PS: forcing this into a shell script rather than running it directly is silly, and it's three bytes smaller as a direct command line (where the " $1" is implicit).

shell + ImageMagick, 18 24 bytes

display -negate $1

display is part of the imagemagick or graphicsmagick image manipulation packages, it has all the functionality of convert or mogrify but sends the result to a gui window instead of a destination file.

PS: forcing this into a shell script rather than running it directly is silly, and it's three bytes smaller as a direct command line (where the _$1 is implicit), or 11 bytes smaller if we accept the IM tools as program interpreters themselves so I don't have to count mogrify_

5 added 85 characters in body
source | link
4 display instead of convert to a.png
source | link
3 added 2 characters in body
source | link
2 added 126 characters in body
source | link
1
source | link