Little Bash Script for resizing your mechbunny thumbs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fris
    I have to go potty
    • Aug 2002
    • 55710

    #1

    Little Bash Script for resizing your mechbunny thumbs

    Thought I would share, I had the default size thumbs enabled and then changed the size and needed to rebuilt but no function exists built into the admin to resize all images.

    (note this is only for images and galleries)

    Code:
    #!/bin/bash
    
    # batch resize mechbunny thumbs
    
    for img in */*.jpg; do convert -adaptive-resize 160x200^ -gravity Center -extent 160x200 "$img" "${img%/*}/thumbs/${img##*/}"; done
    to be run inside /media/galleries folder.
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    My Latest Theme
  • The Heron
    Confirmed User
    • Apr 2001
    • 4496

    #2
    Nice tip!

    Comment

    • SlammedMedia
      Confirmed User
      • Apr 2008
      • 1573

      #3
      Thanks man
      ICQ: 350-260-628

      Comment

      • PornDiscounts-V
        Confirmed User
        • Oct 2003
        • 5744

        #4
        Happy go lucky
        Blog Posts - Contextual Links - Hardlinks on 600+ Blog Network
        * Handwritten * 180 C Class IPs * Permanent! * Many Niches! * Bulk Discounts! GFYPosts /at/ J2Media.net

        Comment

        • fris
          I have to go potty
          • Aug 2002
          • 55710

          #5
          160x200 is the size i picked ;) adjust to your own size ;)
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          My Latest Theme

          Comment

          Working...