- Posts: 269
- Thank you received: 8
Tay photo auto-resizer UNIX script
- kamtron
-
Topic Author
- User
-
Less
More
9 years 10 months ago #226811
by kamtron
Tay photo auto-resizer UNIX script was created by kamtron
Nerd alert 
I ended up writing a little ImageMagick script to deal with the totally annoying TAY photo posting requirements.
Here's the full source code. Use as you'd like. Admins, maybe someone could build this into the TAY software so that people's photos automagically upload????
tayify
usage: tayify file
outputs: file_RANDOMSTRINGLENGTH32_tay.jpg
I ended up writing a little ImageMagick script to deal with the totally annoying TAY photo posting requirements.
Here's the full source code. Use as you'd like. Admins, maybe someone could build this into the TAY software so that people's photos automagically upload????
tayify
usage: tayify file
outputs: file_RANDOMSTRINGLENGTH32_tay.jpg
Code:
#!/bin/bash
RAND=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
convert "$1" -define jpeg:extent=200kb -resize 800x800 "${1}_${RAND}_tay.jpg"
Please Log in or Create an account to join the conversation.
- Marcus
-
- User
-
Less
More
- Posts: 1230
- Thank you received: 0
9 years 10 months ago #226812
by Marcus
Replied by Marcus on topic Re: Tay photo auto-resizer UNIX script
Muchas gracias - I'll talk with Chris about working it in if we can. Outside my technological scope of practice.
Please Log in or Create an account to join the conversation.