Home > Forum > Tay photo auto-resizer UNIX script

Tay photo auto-resizer UNIX script

  • kamtron
  • [kamtron]
  • kamtron's Avatar
  • Offline
  • Senior Member
  • Senior Member
More
11 Apr 2016 09:55 #226811 by kamtron
Tay photo auto-resizer UNIX script was created by kamtron
Nerd alert 8)

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
#!/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
  • [Marcus]
  • Marcus's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
11 Apr 2016 12:00 #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.