Page 21 of 70 FirstFirst ... 11192021222331 ... LastLast
Results 201 to 210 of 699

Thread: Howto: Music album covers in Thunar Nautilus and everywhere!

  1. #201
    Join Date
    Apr 2007
    Location
    Texas, USA
    Beans
    809
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    Hey,

    How did you rotate the widgets like in your pictures?

    Thanks!

  2. #202
    Join Date
    Oct 2006
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    You have to Drag and drop an album to the widget. The album will be added to the playlist.

  3. #203
    Join Date
    Aug 2006
    Beans
    5

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    Could someone help me figure out how to make the CD and vinyl covers without using this program, just imagemagick?

  4. #204
    Join Date
    Oct 2006
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    If you have avatar-factory installed the themes are located in:
    /usr/local/share/avatar-factory/themes

    For example, you can view the source for the cd theme with:
    Code:
    gedit /usr/local/share/avatar-factory/themes/cd
    Here it is the source for the cd theme:
    Code:
    #!/bin/bash
    
    create_theme ()
    {
    convert  \
               /usr/local/share/avatar-factory/themes/CD/base.png -geometry  +0+0  -composite \
               /tmp/thumb$$.png  -geometry  +19+5  -composite \
               /usr/local/share/avatar-factory/themes/CD/top.png  -geometry +0+0  -composite \
               "$icons_PATH/$avatar_filename.png"
    }
    picture_aspect=$(($(identify -format %w "$grabber_picture") - $(identify -format %h "$grabber_picture")))
    
    if [ "$picture_aspect" = "0" ]; then
            convert "$grabber_picture"  -thumbnail 98x98 /tmp/thumb$$.png
    elif [ "$picture_aspect" -gt "0" ]; then
            convert "$grabber_picture"  -thumbnail 300x98 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+$(( ($(identify -format %w /tmp/thumb$$.png) - 98) / 2))+0  +repage /tmp/thumb$$.png
    else
            convert "$grabber_picture"  -thumbnail 98x500 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+0+$(( ($(identify -format %h /tmp/thumb$$.png) - 98) / 2))  +repage /tmp/thumb$$.png
    fi
    create_theme
    
    rm  /tmp/thumb$$.???
    Now, you must replace the $grabber_picture variable with the path to the picture that you want to use as the cover.
    You could just add this to the beginning:
    Code:
    grabber_picture=/path/2/picture.jpg
    Finally replace "$icons_PATH/$avatar_filename.png" with something like:
    /folder/2/save/album.png

    This should work for almost all themes.

  5. #205
    Join Date
    Aug 2006
    Beans
    5

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    I replaced "$icons_PATH/$avatar_filename.png" with ~/cover.png and I get:

    Code:
    convert: missing an image filename `~/album.png'.
    Thanks for helping so far.

  6. #206
    Join Date
    Oct 2006
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    mmm... it is working here.
    Here it is the code:
    Code:
    #!/bin/bash
    grabber_picture=~/cover.jpg
    
    create_theme ()
    {
    convert  \
               /usr/local/share/avatar-factory/themes/CD/base.png -geometry  +0+0  -composite \
               /tmp/thumb$$.png  -geometry  +19+5  -composite \
               /usr/local/share/avatar-factory/themes/CD/top.png  -geometry +0+0  -composite \
               ~/album.png
    }
    picture_aspect=$(($(identify -format %w "$grabber_picture") - $(identify -format %h "$grabber_picture")))
    
    if [ "$picture_aspect" = "0" ]; then
            convert "$grabber_picture"  -thumbnail 98x98 /tmp/thumb$$.png
    elif [ "$picture_aspect" -gt "0" ]; then
            convert "$grabber_picture"  -thumbnail 300x98 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+$(( ($(identify -format %w /tmp/thumb$$.png) - 98) / 2))+0  +repage /tmp/thumb$$.png
    else
            convert "$grabber_picture"  -thumbnail 98x500 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+0+$(( ($(identify -format %h /tmp/thumb$$.png) - 98) / 2))  +repage /tmp/thumb$$.png
    fi
    create_theme
    
    rm  /tmp/thumb$$.???
    Take a look at the lines 2 and 10.
    You only need a picture named "cover.jpg" in your home folder.

  7. #207
    Join Date
    Aug 2006
    Beans
    5

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    Changed it just a teeny bit:

    Code:
    #!/bin/bash
    grabber_picture=~/cover.png
    
    create_theme ()
    {
    convert  \
               /home/shane-arch/Desktop/avatar-factory-0.4.2/themes/CD/base.png -geometry  +0+0  -composite \
               /tmp/thumb$$.png  -geometry  +19+5  -composite \
               /home/shane-arch/Desktop/avatar-factory-0.4.2/themes/CD/top.png  -geometry +0+0  -composite \
               ~/album.png
    }
    picture_aspect=$(($(identify -format %w "$grabber_picture") - $(identify -format %h "$grabber_picture")))
    
    if [ "$picture_aspect" = "0" ]; then
            convert "$grabber_picture"  -thumbnail 98x98 /tmp/thumb$$.png
    elif [ "$picture_aspect" -gt "0" ]; then
            convert "$grabber_picture"  -thumbnail 300x98 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+$(( ($(identify -format %w /tmp/thumb$$.png) - 98) / 2))+0  +repage /tmp/thumb$$.png
    else
            convert "$grabber_picture"  -thumbnail 98x500 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+0+$(( ($(identify -format %h /tmp/thumb$$.png) - 98) / 2))  +repage /tmp/thumb$$.png
    fi
    create_theme
    
    rm  /tmp/thumb$$.???
    And as you can see from the screenshot, it doesn't work.

  8. #208
    Join Date
    Oct 2006
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    Strange...
    Try this:
    Code:
    #!/bin/bash
    grabber_picture=$HOME/cover.png
    
    create_theme ()
    {
    convert  \
               /home/shane-arch/Desktop/avatar-factory-0.4.2/themes/CD/base.png -geometry  +0+0  -composite \
               /tmp/thumb$$.png  -geometry  +19+5  -composite \
               /home/shane-arch/Desktop/avatar-factory-0.4.2/themes/CD/top.png  -geometry +0+0  -composite \
               $HOME/album.png
    }
    picture_aspect=$(($(identify -format %w "$grabber_picture") - $(identify -format %h "$grabber_picture")))
    
    if [ "$picture_aspect" = "0" ]; then
            convert "$grabber_picture"  -thumbnail 98x98 /tmp/thumb$$.png
    elif [ "$picture_aspect" -gt "0" ]; then
            convert "$grabber_picture"  -thumbnail 300x98 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+$(( ($(identify -format %w /tmp/thumb$$.png) - 98) / 2))+0  +repage /tmp/thumb$$.png
    else
            convert "$grabber_picture"  -thumbnail 98x500 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+0+$(( ($(identify -format %h /tmp/thumb$$.png) - 98) / 2))  +repage /tmp/thumb$$.png
    fi
    create_theme
    
    rm  /tmp/thumb$$.???
    If it doesn't work try this:
    Code:
    #!/bin/bash
    grabber_picture=/home/shane-arch/cover.png
    
    create_theme ()
    {
    convert  \
               /home/shane-arch/Desktop/avatar-factory-0.4.2/themes/CD/base.png -geometry  +0+0  -composite \
               /tmp/thumb$$.png  -geometry  +19+5  -composite \
               /home/shane-arch/Desktop/avatar-factory-0.4.2/themes/CD/top.png  -geometry +0+0  -composite \
               /home/shane-arch/album.png
    }
    picture_aspect=$(($(identify -format %w "$grabber_picture") - $(identify -format %h "$grabber_picture")))
    
    if [ "$picture_aspect" = "0" ]; then
            convert "$grabber_picture"  -thumbnail 98x98 /tmp/thumb$$.png
    elif [ "$picture_aspect" -gt "0" ]; then
            convert "$grabber_picture"  -thumbnail 300x98 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+$(( ($(identify -format %w /tmp/thumb$$.png) - 98) / 2))+0  +repage /tmp/thumb$$.png
    else
            convert "$grabber_picture"  -thumbnail 98x500 /tmp/thumb$$.png
            convert /tmp/thumb$$.png -crop 98x98+0+$(( ($(identify -format %h /tmp/thumb$$.png) - 98) / 2))  +repage /tmp/thumb$$.png
    fi
    create_theme
    
    rm  /tmp/thumb$$.???

  9. #209
    Join Date
    Aug 2006
    Beans
    5

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    Neither work. I still get:

    Code:
    convert: missing an image filename `/home/shane-arch/album.png'.

  10. #210
    Join Date
    Oct 2006
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Music album covers in Thunar Nautilus and everywhere!

    You got a P.M.

Page 21 of 70 FirstFirst ... 11192021222331 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •