Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate

#sugar-newbies, 2010-12-26

 « Previous day | Index | Today | Next day »     Channels | Search | Join

All times shown according to UTC.

Time Nick Message
03:07 satellit_ is now known as satellit_afk
06:21 manusheel_afk is now known as manusheel
06:39 manusheel is now known as manusheel_afk
07:21 alsroot_away is now known as alsroot
13:15 mohit <mohit!~chatzilla@> has joined #sugar-newbies
13:37 mukesh_dce <mukesh_dce!~chatzilla@> has joined #sugar-newbies
14:04 mohit has quit IRC
14:21 mukesh_dce alsroot: hi
14:21 alsroot mukesh_dce: hi
14:22 mukesh_dce alsroot: walterbender is not available  right now ..can you tell me about svg to png conversion  in TA?
14:30 alsroot mukesh_dce: hmm, can't find how TA saves png
14:33 mukesh_dce: anyway, you can use code like this to convert svg to png, http://pastebin.com/hMX2vYVp
15:23 mukesh_dce alsroot: how do i use the  object returned from to_file function to create png file ?
15:24 alsroot mukesh_dce: it was just example, e.g., you can use regular file object instead of cStringIO
15:40 mukesh_dce has quit IRC
16:04 mukesh_dce <mukesh_dce!~chatzilla@> has joined #sugar-newbies
16:17 mukesh_dce alsroot: you earlier said i should convert svgs to pngs at first startup..how do i manage the first startup thing
16:22 alsroot mukesh_dce: I meant you can place created png files to sugar.activity.activity.get​_activity_root()/data/icons (or so) directory, so if it is empty you need to create it
16:24 mukesh_dce alsroot: and you were talking about style.zoom and keeping pngs in two sizes .can you please explain it again
16:25 alsroot mukesh_dce: style.zoom() just scales a number according to the current sugar scaling, but you can use already scalled values style.*_ICON_SIZE
16:26 mukesh_dce: so just scale svg to one of style.*_ICON_SIZE size and save it to get_activity_root(), (on XO and on regular boxes, it will be different sizes)
16:30 mukesh_dce_ <mukesh_dce_!~chatzilla@> has joined #sugar-newbies
16:31 mukesh_dce_ has quit IRC
16:33 mukesh_dce has quit IRC
16:33 mukesh_dce <mukesh_dce!~chatzilla@> has joined #sugar-newbies
16:40 gangil <gangil!~gangil@unaffiliated/gangil> has joined #sugar-newbies
16:47 mukesh_dce alsroot: sorry got disconnected..where is  ICON_SCALE defined
16:48 alsroot mukesh_dce: in sugar.graphics.style
16:49 mukesh_dce alsroot: so i just need to multiply image height and width by ICON_SCALE right?
16:50 alsroot mukesh_dce: not multiplied by ICON_SCALE but just using one of style.*_ICON_SIZE constants, they are already scaled (see style.py sources)
16:53 mukesh_dce alsroot: ok got it
17:16 alsroot: the function to convert from svg to png requires final image sizes in the form of width and height ..how do i get width and height from ICON_SIZE
17:21 alsroot mukesh_dce: why not using ICON_SIZE for both width and height, I guess smiles icons are square
17:22 mukesh_dce alsroot: ok
17:32 mukesh_dce has quit IRC
18:10 alsroot is now known as alsroot_away
18:11 alsroot_away is now known as alsroot
18:13 mohit <mohit!~chatzilla@> has joined #sugar-newbies
18:31 mukesh_dce <mukesh_dce!~chatzilla@> has joined #sugar-newbies
18:33 mukesh_dce alsroot:  i have implemented the conversion feature
18:33 alsroot: the application on loading checks if there is an icon folder or not
18:34 alsroot: if not then a .svg files from a folder "temp" are converted to pngs and saved into icons folder
18:34 alsroot: the size of png files is take as MEDIUM_ICON_SIZE
18:35 alsroot: is it fine ?
18:47 alsroot: are you there?
18:49 alsroot mukesh_dce: sounds good, did you update your patch on bugs.sl.o?
18:50 mukesh_dce alsroot: no ,will do it now
19:06 alsroot: i am again getting the error  "patch contains a line longer than 998 characters"  while sending email ...can i send the patch through web email
19:06 alsroot mukesh_dce: does patch contain png files?
19:07 mukesh_dce alsroot: no ..it contains only svg files this time
19:08 alsroot mukesh_dce: add --no-validate argument to git invocation
19:09 mukesh_dce: btw did you add icons' licence to activity.info and info about icons origin to README?
19:10 mukesh_dce alsroot: no
19:10 alsroot mukesh_dce: not sure if mentioning copyright in README is the right thing, but anyway it might be tuned later
19:11 mukesh_dce alsroot: i got smilies from http://commons.wikimedia.org/wiki/Smiley
19:14 alsroot mukesh_dce: they anyway have the author... btw looks like it is tango icons
19:15 mukesh_dce alsroot: patch sent
19:15 alsroot nope, it is http://ftp.gnome.org/pub/GNOME[…]tras-0.9.0.tar.gz
19:40 mohit has quit IRC
20:14 manusheel <manusheel!7aa3646f@gateway/web/freenode/ip.> has joined #sugar-newbies
21:19 mukesh_dce has left #sugar-newbies
21:39 gangil has left #sugar-newbies
22:10 manusheel has quit IRC
22:25 kevix <kevix!~kevin@pool-98-113-63-95.nycmny.fios.verizon.net> has joined #sugar-newbies
22:52 kevix has left #sugar-newbies
22:54 kevix <kevix!~kevin@pool-98-113-63-95.nycmny.fios.verizon.net> has joined #sugar-newbies
22:54 kevix has left #sugar-newbies
23:24 satellit_afk is now known as satellit_

 « Previous day | Index | Today | Next day »     Channels | Search | Join

Powered by ilbot/Modified.