3 ms·
I built a tool for that back in March: https://simonwillison.net/2024/Mar/26/llm-cmd/ https://simonwillison.net/2024/Mar/26/llm-cmd/ llm cmd use imagemagic
by simonw 2y ago
I built a tool for that back in March: https://simonwillison.net/2024/Mar/26/llm-cmd/ https://simonwillison.net/2024/Mar/26/llm-cmd/
llm cmd use imagemagick to convert goats.jpg into four different JPEG qualities
I ran that just now and it suggested:
convert goats.jpg -quality 10 goats_quality_10.jpg && \
convert goats.jpg -quality 30 goats_quality_30.jpg && \
convert goats.jpg -quality 50 goats_quality_50.jpg && \
convert goats.jpg -quality 90 goats_quality_90.jpg
Which, sure enough, produced me a bunch of different quality images!
- pandeiro 2y agoYour tool is really cool, thanks for making it and sharing. I notice that a lot of times, the multi-line output I get from my prompts is truncated or the model just aborts or something. The exit code is still 0 but it seems like something went wrong.
- simonw 2y agoWhich model / plugin are you using there?
- pandeiro 2y agoI'm using Meta-Llama-3-8B-Instruct. BTW it's a great project and I see it's gotten massive adoption on Github, with plenty of Issues to follow. Curse of success! Thanks again. EDIT: Created an Issue for it, probably a more appropriate place to file this ;) https://github.com/simonw/llm/issues/561 https://github.com/simonw/llm/issues/561