[Sugar-devel] Network version of Abecedarium: why and how

David Rodríguez Álvarez daroal at activitycentral.com
Thu Apr 25 03:30:47 EDT 2013


Hi, Lionel

Besides any other optimizations, for a really quick and remorseless fix,
you can run your images through Trimage, http://trimage.org/ , which
uses some lossless compression libraries and seems to work nicely with
your png resources (see attachment for an admittedly too small sample of
results from your files, with impossible recursion added for fun).
 
Best regards,

David Rodriguez.

El jue, 25-04-2013 a las 08:54 +0200, lionel at olpc-france.org escribió:
>  
> 
> Hi Gonzalo,
> 
>  
> 
> Hmmm, interesting. You’re right it’s a good way to explore to reduce
> the package size.
> 
> Plus, most of the times images are displayed in the game at maximum
> 70% of the real size. So, I’m not sure reducing quality will be
> visible.
> 
> I’m going to try. 
> 
> About list of contents, it could be find here: [1].
> 
>  
> 
> Best regards from France.
> 
>  
> 
>                 Lionel.
> 
>  
> 
>  
> 
> [1]
> https://docs.google.com/spreadsheet/ccc?key=0ApkC1NVMZoZodGF1X2lwRERIcTBrN2NoMFMtejgxbHc#gid=0 
> 
>  
> 
> De : godiard at gmail.com [mailto:godiard at gmail.com] De la part de
> Gonzalo Odiard
> Envoyé : mercredi 24 avril 2013 23:31
> À : Lionel Laské
> Cc : Sugar-dev Devel
> Objet : Re: [Sugar-devel] Network version of Abecedarium: why and how
> 
>  
> 
> Hi Lionel,
> 
> Almost 65 MB are in the html/images/database directory, I think you
> can reduce the size of these images to 1/4 of the actual size, just
> saving as gif or jpg and playing a little with the properties, without
> loosing too much quality.
> 
> 
> I tried with one on gimp, but you can use imagemagick or similar to
> reprocess all the directory
> 
> 
> Look:
> 
> 
> [gonzalo at localhost abc]$ ls -l 
> 
> 
> total 152
> 
> 
> -rw-rw-r--. 1 gonzalo gonzalo 19228 abr 24 17:59 accountant2.jpg
> 
> 
> -rw-rw-r--. 1 gonzalo gonzalo 16029 abr 24 17:59 accountant3.jpg
> 
> 
> -rw-rw-r--. 1 gonzalo gonzalo 21789 abr 24 17:56 accountant.gif
> 
> 
> -rw-rw-r--. 1 gonzalo gonzalo 28391 abr 24 17:57 accountant.jpg
> 
> 
> -rw-r--r--. 1 gonzalo gonzalo 62549 dic  9 22:57 accountant.png
> 
> 
>  
> 
> 
> (accountant2.jpg is with quality 70% and accountant3.jpg with 50%)
> 
> 
> I don't know about the audio, but maybe is possible improve there too.
> 
> 
>  
> 
> 
> I would like have the list of words represented on these images on
> pootle. I imagine many activities 
> 
> 
> can use this if is a shared resource. 
> 
> 
>  
> 
> 
>  
> 
> On Wed, Apr 24, 2013 at 5:38 PM, <lionel at olpc-france.org> wrote:
> 
>         Hi all,
>         
>          
>         
>         I’ve released last week my Abecedarium activity for Sugar 0.96
>         +. One issue with this activity is that, due to number of
>         contents (1500 images and sounds), its size is about 100Mo.
>         
>          
>         
>         We want to deploy the activity on our Nosy Komba deployment
>         this year: 150 XO-1 and 50 XO-1.5.
>         
>         Because we’ve got other activities to deploy, we compute:
>         
>         -          The free space on a XO-1 and XO-1.5 with Sugar 0.96
>         without any activity: 550 Mo for XO-1, 2645Mo for XO-1.5.
>         
>         -          The size of all activities that we planned to
>         install, see the spreadsheet [1].
>         
>         Unfortunately 100 Mo is too big for the XO-1 with some other
>         big activities (GCompris, Tuxmath, TurtleArt, Speak, …).
>         
>          
>         
>         So I choose to develop a new version named “Abecedarium
>         Net” [2] without any content included, so with a size of only
>         6Mo.
>         
>         The idea is to deploy all contents on a school/web server
>         instead of into the activity. A config file in the activity
>         has to be set with the URL of the content, or it could be set
>         from a dialog popup. The activity test the network regularly
>         and display the status.
>         
>         Because Abecedarium is wrote in HTML5, deploying the web
>         server just mean to copy the content of the full activity on
>         the server.
>         
>         I’ve explained the full process in the activity description.
>         
>         I will test it myself on our School Server at Madagascar but
>         do not hesitate in the meantime to test it and give me
>         feedback.
>         
>          
>         
>         Best regards from France.
>         
>          
>         
>                         Lionel.
>         
>          
>         
>         [1]
>         https://docs.google.com/spreadsheet/ccc?key=0ApkC1NVMZoZodDg5em1vaS04VC1vSDdoZ1Z5SHNJUXc#gid=0 
>         
>         [2] http://activities.sugarlabs.org/en/sugar/addon/4661 
>         
>         
>         
>         _______________________________________________
>         Sugar-devel mailing list
>         Sugar-devel at lists.sugarlabs.org
>         http://lists.sugarlabs.org/listinfo/sugar-devel
>         
>  
> 
> 
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

-- 
David Rodriguez
Communications Infrastructure

Activity Central: https://activitycentral.com

Facebook: https://activitycentral.com/facebook
Google+: https://activitycentral.com/googleplus
Twitter: https://activitycentral.com/twitter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Trimage quick results.png
Type: image/png
Size: 28820 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130425/a1fb397d/attachment-0001.png>


More information about the Sugar-devel mailing list