On Wed, 26 Apr 2006 23:44:45 +1000 "Van Munin Chhieng" <[EMAIL PROTECTED]>
babbled:
> Thanks Gopalarathnam.
> I really appreciate the help.
note - that is much more long-winded than needed. a much simpler one (that
relies on default values) is this script (and it allows you to set quality
levels, or lossless compression). save it and just use it (notice the acutal
edc section is much smaller).
#!/bin/sh
if [ $# -lt 2 ]; then
echo "Usage:"
echo " e_bggen.sh source_image_file.jpg/.png output_file.edj [-q N] [-c]"
echo ""
echo "where 'source_image_file.jpg/.png' is the source image,"
echo "'output_file.edj' is the output file to produce and then optional"
echo "options of -q N for quality (where N is between 1 and 100), or the"
echo "-c option which forces compressed lossless encoding."
fi
BG=$1
OUT=$2
# internal values
QUAL=90
ENC="LOSSY $QUAL"
# options
if [ "$3" = "-q" ]; then
QUAL="$4"
ENC="LOSSY $QUAL"
fi
if [ "$3" = "-c" ]; then
ENC="COMP"
fi
cat <<EOF > t.edc
images { image: "$BG" $ENC; } collections { group { name: "desktop/background";
parts { part { name: "background"; description { state: "default" 0.0;
image { normal: "$BG"; } } } } } }
EOF
edje_cc -v t.edc $OUT
rm t.edc
>
>
>
> > On 4/26/06, Gopalarathnam Venkatesan <[EMAIL PROTECTED]> wrote:
> > >
> > > On 4/24/06, Van Munin Chhieng <[EMAIL PROTECTED]> wrote:
> > > > Hello e17 users,
> > > >
> > > > I have to say those that never use e17 or any e-series never know
> > > what they
> > > > are missing.
> > > >
> > > > Does anyone know where I can find document of how to make edj file
> > > for
> > > > background. I have looked at user document but did not find anything.
> > > > Did I miss something from the e17 website ?
> > > >
> > >
> > > Here's a small shell procedure I use for making wallpaper. The usage
> > > is "make_wallpaper background1 background2 ...".
> > >
> > > HTH :)
> > >
> > > Save the following snippet as "make_wallpaper".
> > >
> > > --------------------- cut -----------------------
> > > #!/bin/sh
> > >
> > > for i
> > > do
> > > target=`basename $i .jpg`.edj
> > > workFile="/tmp/wallpaper.$$"
> > > cat >$workFile <<__EOF__
> > > images {
> > > image, "$i" LOSSY 95;
> > > }
> > > collections {
> > > group {
> > > name, "desktop/background";
> > > parts {
> > > part {
> > > name, "background_image";
> > > mouse_events, 0;
> > > description {
> > > state, "default" 0.0;
> > > rel1 {
> > > relative, 0.0 0.0;
> > > offset, 0 0;
> > > }
> > > rel2 {
> > > relative, 1.0 1.0;
> > > offset, -1 -1;
> > > }
> > > image {
> > > normal, "$i";
> > > }
> > > fill {
> > > origin {
> > > relative, 0.0 0.0;
> > > offset, 0 0;
> > > }
> > > size {
> > > relative, 1.0 1.0;
> > > offset, 0 0;
> > > }
> > > }
> > > }
> > > }
> > > }
> > > }
> > > }
> > > __EOF__
> > > edje_cc $workFile $target
> > > rm -f $workFile
> > > done
> > > --------------------paste ---------------------
> > >
> > > --
> > > Gopalarathnam Venkatesan
> > > http://gopalarathnam.com/
> > >
> >
> >
> >
> > --
> > "THE ONLY PLACE WHERE SUCCESS COMES BEFORE WORK IS IN THE DICTIONARY."
> >
> > by Donald Kendall
> >
>
>
>
> --
> "THE ONLY PLACE WHERE SUCCESS COMES BEFORE WORK IS IN THE DICTIONARY."
> by Donald Kendall
>
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users