makeImageRequest troubles

Hi, I am playing with makeImageRequest of Communications module,
sometimes the simple application I wrote ( but also this one https://apps.garmin.com/it-IT/apps/0...1-d112fa50a595 ) fails loading image, throwing an exception, (IQ logo with triangle) what i don't undertand is why it fails, sometimes it works for 240x400 jpeg images, sometimes it fails with simple 2 color png of 200x200 pixels.It seems to works well for png up to 240x80 pixel, then fails.
The device i am using is a edge 1000 with latest firmware, some behavior in simulator. (2.4.2 ) Are there colors/bpp/size/type restriction of images ? Is there a preferred format ?

  • Former Member
    Former Member
    sometimes the simple application I wrote fails loading image, throwing an exception, (IQ logo with triangle)

    What is the response code in the callback for the image? Would you list out the details of the exception?

    Are there colors/bpp/size/type restriction of images ?

    Connect Mobile will dither the image down to match the palette of the device, or if a palette is provided in the request it will attempt to use that. In the case of the edge1000, it has a rather large base palette, so if a reduced palette is not specified and the original image has a large number of unique colors the resulting image can be rather large. This can lead to long transfer times and sometimes out of memory on some device. I don't think there should be any distinct behavior differences between jpeg and png though.
  • Hi asandweech , response code is not available because an exception is thrown and load callback is never called.
    The exception is

    ERROR: System Error
    DETAILS: failed inside handle_image_callback
    STORE_ID: 02cff17f138d4c14a2f1d112fa50a595
    CALLSTACK:
    The strange thing is that this small image was loaded and showed fast,
    http://fabrizio.zellini.org/garmin/icon is 240x72
    this one instead
    http://fabrizio.zellini.org/garmin/icon2 is 240x100 does not work, the same with only a few more black lines.

    You can try loading the image with the widget i linked above with a device or with a simple program in the simulator, the results are the same.