Skip to main content
19 events
when toggle format what by license comment
May 4, 2023 at 8:40 history edited mousetail CC BY-SA 4.0
Fix imgur link since they are going to delete all anonymous images
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Feb 6, 2014 at 22:04 comment added Arnaud Meuret @ArlaudPierre 1) convert relies on the extension to choose the output format 2) Mime Type resolvers rely mostly on file extensions; in rare cases magic cookies
Feb 5, 2014 at 9:49 comment added Tomas @ArnaudMeuret GNU hello is not very standard, e.g. it's not present on our debian server.
Feb 4, 2014 at 21:38 review Suggested edits
Feb 4, 2014 at 21:39
Feb 4, 2014 at 12:52 comment added Pierre Arlaud Why do you even care for the extension of the file? Just call it a and the mime type will do the rest.
Feb 4, 2014 at 9:43 comment added Arnaud Meuret Frankly I don't think bash qualifies as a programming language here or that convert qualifies as an API. But in this case I'd throw GNU hello in and bring this contraption down to 29 with: convert label:"`hello`" h.png
Feb 4, 2014 at 2:23 comment added Christopher Creutzig @alexy13 The task is to create a png.
Feb 3, 2014 at 13:07 comment added alexyorke Save one character if you change ".png" to ".ps" to save to postscript
Feb 2, 2014 at 9:44 comment added Mechanical snail @Vortico: I think convert looks at the extension to figure out what format to save in. Otherwise you would have to specify PNG explicitly, which is longer than the extension.
Feb 2, 2014 at 8:23 comment added Vortico Would it be valid to save the image with the filename 'a'?
Feb 1, 2014 at 23:06 history edited r3mainer CC BY-SA 3.0
added 109 characters in body
Feb 1, 2014 at 22:17 comment added sch Also, if you make it sh, you don't have to worry about ! and you make it even less esoteric.
Feb 1, 2014 at 22:14 comment added sch @DigitalTrauma, it doesn't necessarily means escaping when in double quotes. It's just that here it was !" (which is looking for an event starting with " in the history).
Feb 1, 2014 at 22:12 comment added Digital Trauma @sch - True - I was thinking the ! needed escaping when unquoted, but it only needs escaping when in double quotes.
Feb 1, 2014 at 22:10 comment added sch convert label:Hello\ world! a.png is even shorter.
Feb 1, 2014 at 22:05 comment added Digital Trauma You can shave off one char by using single-quotes: convert 'label:Hello world!' a.png
Feb 1, 2014 at 20:57 comment added Tomas Great!! :-) I wanted to write something like that. Unbeatable! All the esoteric languages will finally get their ass kicked today! :-)
Feb 1, 2014 at 20:46 history answered r3mainer CC BY-SA 3.0