Hey,
How did you rotate the widgets like in your pictures?
Thanks!
Hey,
How did you rotate the widgets like in your pictures?
Thanks!
You have to Drag and drop an album to the widget. The album will be added to the playlist.
Could someone help me figure out how to make the CD and vinyl covers without using this program, just imagemagick?
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:
Here it is the source for the cd theme:Code:gedit /usr/local/share/avatar-factory/themes/cd
Now, you must replace the $grabber_picture variable with the path to the picture that you want to use as the cover.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$$.???
You could just add this to the beginning:
Finally replace "$icons_PATH/$avatar_filename.png" with something like:Code:grabber_picture=/path/2/picture.jpg
/folder/2/save/album.png
This should work for almost all themes.
I replaced "$icons_PATH/$avatar_filename.png" with ~/cover.png and I get:
Thanks for helping so far.Code:convert: missing an image filename `~/album.png'.
mmm... it is working here.
Here it is the code:
Take a look at the lines 2 and 10.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$$.???
You only need a picture named "cover.jpg" in your home folder.
Changed it just a teeny bit:
And as you can see from the screenshot, it doesn't work.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$$.???
Strange...
Try this:
If it doesn't work 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$$.???
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$$.???
Neither work. I still get:
Code:convert: missing an image filename `/home/shane-arch/album.png'.
You got a P.M.
Bookmarks