Down Scaled Images

Greetings!

We, the Mobile Team are planning to implement Image Reports on a Mobile Phone . Where the users could download and view the charts on their Mobile Clients. Right now we are downloading the full 800x500 to the phone and then re-size it so it would be viewable in a small screen. It would be of great help if the server could offer ability to provide scaled down images. So it would be:

  1. Easier to transfer on the network, specially on intermittent or slow internet.
  2. Lesser memory consumption on the Mobile Clients.
  3. Less CPU/Memory intensive as the Mobile Clients doesn’t need anymore of re-sizing the image.

I’m thinking something like a Query String. Something like:

/data?scaleWidth=176&scaleHeight=220

And this would give me a scaled image of the size of 176x220. It is also important that text, headers, labels, etc. remains readable on the down scaled image.

Thanks! I’d like to open a discussion on this feature.
Paul

Hi Paul,

you can do this:

http://apps.dhis2.org/demo/api/charts/X6mK8NSNXxn/data?width=405&height=294

Lars

···

On Tue, Mar 11, 2014 at 1:06 PM, Paul Mark Castillo paulmarkcastillo@gmail.com wrote:

Greetings!

We, the Mobile Team are planning to implement Image Reports on a Mobile Phone . Where the users could download and view the charts on their Mobile Clients. Right now we are downloading the full 800x500 to the phone and then re-size it so it would be viewable in a small screen. It would be of great help if the server could offer ability to provide scaled down images. So it would be:

  1. Easier to transfer on the network, specially on intermittent or slow internet.
  2. Lesser memory consumption on the Mobile Clients.
  3. Less CPU/Memory intensive as the Mobile Clients doesn’t need anymore of re-sizing the image.

I’m thinking something like a Query String. Something like:

/data?scaleWidth=176&scaleHeight=220

And this would give me a scaled image of the size of 176x220. It is also important that text, headers, labels, etc. remains readable on the down scaled image.

Thanks! I’d like to open a discussion on this feature.
Paul


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Thanks! I’ll try it on the device :slight_smile:

···

On Tue, Mar 11, 2014 at 8:08 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Paul,

you can do this:

http://apps.dhis2.org/demo/api/charts/X6mK8NSNXxn/data?width=405&height=294

Lars

On Tue, Mar 11, 2014 at 1:06 PM, Paul Mark Castillo paulmarkcastillo@gmail.com wrote:

Greetings!

We, the Mobile Team are planning to implement Image Reports on a Mobile Phone . Where the users could download and view the charts on their Mobile Clients. Right now we are downloading the full 800x500 to the phone and then re-size it so it would be viewable in a small screen. It would be of great help if the server could offer ability to provide scaled down images. So it would be:

  1. Easier to transfer on the network, specially on intermittent or slow internet.
  2. Lesser memory consumption on the Mobile Clients.
  3. Less CPU/Memory intensive as the Mobile Clients doesn’t need anymore of re-sizing the image.

I’m thinking something like a Query String. Something like:

/data?scaleWidth=176&scaleHeight=220

And this would give me a scaled image of the size of 176x220. It is also important that text, headers, labels, etc. remains readable on the down scaled image.

Thanks! I’d like to open a discussion on this feature.
Paul


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Lars,

Does this affect font size? We're potentially talking veeeery small

images here.

_Andreas_
···

On 11. mars 2014 13:08, Lars Helge
Øverland wrote:

Hi Paul,

you can do this:

http://apps.dhis2.org/demo/api/charts/X6mK8NSNXxn/data?width=405&height=294

Lars

      On Tue, Mar 11, 2014 at 1:06 PM, Paul

Mark Castillo paulmarkcastillo@gmail.com
wrote:

Greetings!

          We, the Mobile Team are planning to implement **                Image

Reports on a Mobile Phone** . Where the users could
download and view the charts on their Mobile Clients.
Right now we are downloading the full 800x500 to the phone
and then re-size it so it would be viewable in a small
screen. It would be of great help if the server could
offer ability to provide scaled down images . So it
would be:

  1.               Easier to transfer on the network, specially on
    

intermittent or slow internet.

  1. Lesser memory consumption on the Mobile Clients.
  2.               Less CPU/Memory intensive as the Mobile Clients
    

doesn’t need anymore of re-sizing the image.

          I'm thinking something like a Query String. Something

like:

/data?scaleWidth=176&scaleHeight=220

          And this would give me a scaled image of the size of **176x220**              .

It is also important that text, headers, labels, etc.
remains readable on the down scaled image.

          Thanks! I'd like to open a discussion on this feature.

Paul

        _______________________________________________

        Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/%7Edhis2-devs)

        Post to     : dhis2-devs@lists.launchpad.net

        Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/%7Edhis2-devs)

        More help   : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
_______________________________________________
Mailing list: Post to : Unsubscribe : More help :

-- Peder Andreas Nergaard, Mobile Coordinator
HISP/DHIS2, Department of Informatics, University of Oslo
p: +47 922 47 500 - s: peder.andreas.nergaard - e:

https://launchpad.net/~dhis2-devsdhis2-devs@lists.launchpad.nethttps://launchpad.net/~dhis2-devshttps://help.launchpad.net/ListHelphttp://www.dhis2.org/andreasn@ifi.uio.no

Nope not at the moment. The source is in project dhis-service-reporting.

···

On Tue, Mar 11, 2014 at 2:13 PM, Peder Andreas Nergaard andreasn@ifi.uio.no wrote:

Hi Lars,

Does this affect font size? We're potentially talking veeeery small images here.



_Andreas_



  On 11. mars 2014 13:08, Lars Helge Øverland wrote:

Hi Paul,

you can do this:

http://apps.dhis2.org/demo/api/charts/X6mK8NSNXxn/data?width=405&height=294

Lars

_______________________________________________ Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
-- Peder Andreas Nergaard, Mobile Coordinator HISP/DHIS2, Department of Informatics, University of Oslo [http://www.dhis2.org/](http://www.dhis2.org/)
p: +47 922 47 500 - s: peder.andreas.nergaard - e: andreasn@ifi.uio.no
      On Tue, Mar 11, 2014 at 1:06 PM, Paul Mark Castillo <paulmarkcastillo@gmail.com>
      wrote:

Greetings!

          We, the Mobile Team are planning to implement **                Image Reports on a Mobile Phone**              . Where the users could download and view the charts on their Mobile Clients. Right now we are downloading the full 800x500 to the phone and then re-size it so it would be viewable in a small screen. It would be of great help if the server could offer ability to provide **scaled down images**              . So it would be:
  1.               Easier to transfer on the network, specially on intermittent or slow internet.
    
  2. Lesser memory consumption on the Mobile Clients.
  3.               Less CPU/Memory intensive as the Mobile Clients doesn't need anymore of re-sizing the image.
    
    
           I'm thinking something like a Query String. Something like:
    

/data?scaleWidth=176&scaleHeight=220

          And this would give me a scaled image of the size of **176x220**              . It is also important that text, headers, labels, etc. remains readable on the down scaled image.



          Thanks! I'd like to open a discussion on this feature.

Paul

        _______________________________________________

        Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/%7Edhis2-devs)

        Post to     : dhis2-devs@lists.launchpad.net

        Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/%7Edhis2-devs)

        More help   : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)