huge number of image resources in final application

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

huge number of image resources in final application

oetiker
I just finished porting my first application over to qooxdoo 0.8
looking at the resulting code, all looks fine except for the
resources directory. It seems that the modern theme needs a huge
number of images to work. Is this normal, or am I doing something
wrong?

Looking at the mage names, it seems that both the single and the
combined images get copied.

oetiker> du -sk *
4       index.html
1920    resource
652     script

cheers
tobi

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: huge number of image resources in final application

Sebastian Werner
Hi Tobi,

this is exactly what should happen. Both images are needed to get it  
done in all supported browsers. In most cases we can use the combined  
images, but for example not in IE6 when dealing with PNGs. This is  
quite of number of images, but most of them are really small.

Sebastian



Am 08.09.2008 um 00:32 schrieb Tobias Oetiker:

> I just finished porting my first application over to qooxdoo 0.8
> looking at the resulting code, all looks fine except for the
> resources directory. It seems that the modern theme needs a huge
> number of images to work. Is this normal, or am I doing something
> wrong?
>
> Looking at the mage names, it seems that both the single and the
> combined images get copied.
>
> oetiker> du -sk *
> 4       index.html
> 1920    resource
> 652     script
>
> cheers
> tobi
>
> --
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
> http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: huge number of image resources in final application

Charlie_fr
Hi Sebastian
I'm struggling with the same kind of problem : whathever I set the QXTHEME, both decoration/Classic and decoration/Modern are copied to the build folder, and, a lot more annoying, both Oxygen and Tango are fully copied (10Mo) to the resource folder. In my application, I do not use any #asset of the given icon sets, so I guess I should get only the few Tango icons required by the Modern theme??? Am I wrong?
I tried to set asset-let, tried to find something in the logs of generator.py... Just found out that I was using a component (tree virtual) that was requiring the Classic theme (even in Modern I guess), but that does not explain the two icons folder.

Here is my config.json, if you can see something evident... ??
Thanks in advance
Charles


------------------- CONFIG.JSON
{
  "name"    : "ria",

  "include" :
  [
    {
      "path" : "${QOOXDOO_PATH}/component/apiviewer/api.json",
      "as"   : "apiconf"
    },
    {
      "path" : "${QOOXDOO_PATH}/component/testrunner/testrunner.json",
      "as"   : "testrunner"
    }   
  ],
 
  "let" :
  {
    "APPLICATION"  : "org.argeo.ria",
    "QOOXDOO_PATH" : "src/qooxdoo-sdk",
    "QXTHEME"      : "qx.theme.Modern",
    "API_EXCLUDE"  : ["qx.legacy.*"],
    "LOCALES"      : [ "en" ],
    "ROOT"         : "src/argeo-ria-src",
    "BUILD_PATH"   : "src/argeo-ria",
    "RIA_LIB_PATH" : "src/argeo-ria-lib",
    "RIA_LIB_URI"  : "../argeo-ria-lib",
    "CACHE"           : "cache" ,
    "CUSTOM_PACKAGE" : "org.argeo.slc.web"
  },

  "jobs" :
  {
    "common" :
    {
      "library" :
      [
        {
          "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json"
        },
        {
          "manifest" : "${RIA_LIB_PATH}/slc/Manifest.json"
        },
        {
          "manifest" : "${RIA_LIB_PATH}/slc-web/Manifest.json"
        },
        {
          "manifest" : "${ROOT}/Manifest.json"
        }
      ],

      "include" :
      [
        "${APPLICATION}.Application",
        "${CUSTOM_PACKAGE}.*",
        "${QXTHEME}"
      ],

      "cache" :
      {
        "compile" :  "${CACHE}"
      },

      "settings" :
      {
        "qx.version"     : "${QXVERSION}",
        "qx.theme"       : "${QXTHEME}",
        "qx.application" : "${APPLICATION}.Application",
        "ria.StartupPerspective":"org.argeo.slc.web.LauncherPerspective"       
      }
    },

    // -- source jobs --------------------------------------------------

    "source-script" :
    {
      "extend" : ["common"],

      "compile-source" :
      {
        "file" : "${ROOT}/script/${APPLICATION}.js",
        "locales" : "${LOCALES}",
        "root" : "${ROOT}",
        "gzip" : false
      }
    },


    "slc-source" :
    {
      "run" :
      [
        "source-script"
      ]
    },

    // -- build jobs --------------------------------------------------

    "build-script" :
    {
      "extend" : ["common"],

      "variants" :
      {
        "qx.debug" : ["off"]
      },

      "compile-dist" :
      {
          "paths" :
          {
            "file" : "${BUILD_PATH}/script/${APPLICATION}.js",
            "gzip"     : false
          },
          "uris" :
          {
            "script"   : "script",
            "resource" : "resource"
          },
          "code" :
          {
            "format"   : true,
            "locales"  : "${LOCALES}",
            "optimize" : ["variables", "basecalls", "privates", "strings"]
          }
      /*
      "file" : "${BUILD_PATH}/script/${APPLICATION}.js",
        "target" : "${BUILD_PATH}",
        "uri"  : "script/${APPLICATION}.js",
        "root" : "${BUILD_PATH}",
        "format" : "on",
        "locales" : "${LOCALES}",
        "optimize" : ["basecalls", "variables", "privates", "strings"]
       */
      }
    },


    "build-resources":
    {
      "extend" : ["common"],
      "asset-let" :
      {
        "qx.icontheme" : ["Tango"]
      },

      "copy-resources" :
      {
        "target"          : "${BUILD_PATH}",
        "resource-filter" : true
      }
    },

    "my-build-files" :
    {
      "extend" : ["common"],

      "copy-files" :
      {
        "files" :
        [
          "index.html"
        ],
        "source" : "${ROOT}",
        "target" : "${BUILD_PATH}"
      }
    },
   
    "slc-build" :
    {
      "run" :
      [
        "build-resources",
        "build-script",
        "my-build-files"
      ]
    },
   
    "slc-api" :
    {
      "extend" : ["apiconf::build"],

      "let" :
      {
        "APIVIEWER_ROOT" : "${QOOXDOO_PATH}/component/apiviewer",
        "BUILD_PATH" : "./target/site/argeo-ria-api/",
        "API_INCLUDE" : ["${APPLICATION}.*", "${CUSTOM_PACKAGE}.*"]
      },

      "library" :
      [
        {
          "manifest" : "${ROOT}/Manifest.json",
          "uri"      : ".."
        },
        {
          "manifest" : "${RIA_LIB_PATH}/slc-web/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/slc-web"
        },
        {
          "manifest" : "${RIA_LIB_PATH}/slc/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/slc"
        }       
      ]
    },
   
    "slc-test" :
    {
      "extend" : ["testrunner::build"],

      "let" :
      {
        "TESTRUNNER_ROOT" : "${QOOXDOO_PATH}/component/testrunner",
        "TEST_INCLUDE"    : "${APPLICATION}.test.*",
        "BUILD_PATH"      : "./target/site/argeo-ria-test/"
      },

      "library" :
      [
        {
          "manifest" : "${ROOT}/Manifest.json",
          "uri"      : ".."
        }
      ]
    }
   
   
  }
}


Sebastian Werner a écrit :
Hi Tobi,

this is exactly what should happen. Both images are needed to get it  
done in all supported browsers. In most cases we can use the combined  
images, but for example not in IE6 when dealing with PNGs. This is  
quite of number of images, but most of them are really small.

Sebastian



Am 08.09.2008 um 00:32 schrieb Tobias Oetiker:

  
I just finished porting my first application over to qooxdoo 0.8
looking at the resulting code, all looks fine except for the
resources directory. It seems that the modern theme needs a huge
number of images to work. Is this normal, or am I doing something
wrong?

Looking at the mage names, it seems that both the single and the
combined images get copied.

oetiker> du -sk *
4       index.html
1920    resource
652     script

cheers
tobi

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
    


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


  

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel