Releases: archer884/annatar
Dependabot
FAKE NEWS
I've been using Linux a lot lately and it's been REALLY annoying that annatar wasn't able to handle the particular kinds of challenges presented by the Linux environment. Specifically, most distributions do not include impact.ttf, which is annatar's default font for printing captions. Attempting to generate an image would result in a) a rather stupid error message and b) an annoying search for an appropriate font followed by c) rerunning the command with a custom font applied.
Luckily, you can now avoid all that! All you need to do (for now, until I decide which font to set as the default for Linux, presumably) is set a font using an environment variable. For example:
export ANNATAR_DEFAULT_FONT=D050000L
Note: the above setting is not recommended.
Little Lord Font-Leroy
For... Hell, since sometime in 2019, I have known that the previous release of annatar no longer worked on the latest version of macOS thanks to Tim Cook's fuckery. This was caused by the fact that the fine folks over at Apple chose to move the fonts someplace else on your hard drive. I didn't fix it forever because, in fact, the fonts were moved someplace you couldn't get to the old fashioned way, and also because I changed jobs and began mostly using Windows for work again.
COVID giveth and COVID taketh away. Actually, I don't have more free time now thanks to beer plague; I have exactly the SAME amount of free time; it just so happens that I spent some of it researching the font problem and found a solution in the form of font-kit. Props to the Servo team over at Mozilla. The problem on macOS Catalina is now fixed.
Another arbitrary change is that alternate fonts are now selected by name rather than by path. I personally think this is a much more reasonable API, and it's what I would have done in the first place had I known how. The image above was made using the following command:
annatar https://longstupidurl.com \
-b 'pls kill me' \
-o fontleroy.jpg \
--font 'Comic Sans MS'
Don't let your memes be dreams.
The Dogening!
It's been a long time coming, but it's FINALLY HERE: you can now have annotations with different sizes. See the readme for more info.
Apparently, the dog isn't really all that happy about my name for this version...
Chocolatey didn't really work out because it took them like a year to approve the With Nuts release and I got sick and tired of their shit. I'll provide both Windows and macOS binaries, but the best way for you to install annatar is probably still to just get it from crates.io via cargo. Just visit rustup.rs to get started.
With Nuts
Original Sin
This release revamps the AA factor applied to text to improve appearance at some resolutions. More importantly, however, it adds a little padding to the vertical height of your text so that dangly lowercase letters have a harder time losing part of their border. The latter issue was discovered when attempting to employ some seriously OLD TESTAMENT fonts to a new programming meme.
Who knew the Apostle Paul was familiar with JavaScript?
Bitterbrew
For this version, I have ripped out the guts of the program and put them into a separate library. I still have no plans to change the CLI in a backward-incompatible manner, but I also still have plans to extend it somehow.
This time you can just download the executable, at least for mac os.
The Scriptbreaker
I gained a level in Clap-rs and now the command line interface makes slightly more sense. Furthermore, you can add text to the top, middle, or bottom of an image--although still only one line each. Lastly, it is now possible to target an image from the web rather than first saving the file and then doing the needful.
Captain Caption
Annatar now supports the ability to caption images. You get only one line, so make it count. And I hope you like white text with a black border, because you can change the font, but hell if you can change much else. Text size can be scaled, but border size is fixed as a proportion of text size.
Probably the most annoying thing is that the border is not anti-aliased even though the text itself is, but fixing that is not on the roadmap at the moment.