cip / kiwix-mobile

GNU General Public License v2.0
2 stars 0 forks source link

Images not displayed #1

Open cip opened 12 years ago

cip commented 12 years ago

In commit f4d5a49ea4007d7140acfb3989982dfd6373f746 the following issues regardings images have been observed.

  1. pngs are not displayed. As a workaround metatype image/png are replaced with image (or even image/jpeg). Unclear why this solves the problem. Workaround implemented in commit 2bf0f025b3c3c28a0cbf95e4af867dd56966a74c. In addition odd that webview example (which is basically the same code as main.qml from kiwix-mobile), does display pngs correctly, despite that http header is also image/png.
  2. jpeg are not displayed on Android 2.2, while they are not displayed on android 4.0.3. May be related to issue described in http://grokbase.com/t/gg/android-qt/124ek7q93c/jpeg-image. Note that also a qml webview example which just loads google.at shows same problem on 2.2. (on Android 4.0.3 it works correctly as well).

Note: With implementation used in wikionboard (just setting mimetype to text/html) on Android 4.0.3 pngs are not displayed, while jpegs are displayed. Test systems: emulator android 2.2 and 4.0.3. Compiled for corresponding api level. (In addition tested compile for 2.2 on 4.0.3) Necessitas alpha 3 (probably) using new ministro This http://files.kde.org/necessitas/installer/MinistroActivity.apk. Note that tests on alpha 4 show that same issue. zim file: http://download.kiwix.org/zim/0.9/wikipedia_sw_all_04_2011.zim, Article: /A/Kenya.html

cip commented 12 years ago

Test on Samsung Galaxy S (Android 2.2.1) (commit a20189a7bba8be4f31093f32a15cfdadf98aa9db, ): JPEGs are displayed correctly. (Test: http://download.kiwix.org/zim/0.9/wikipedia_sw_all_04_2011.zim, Article "Wikiwiki") Necessitas alpha3 (probably), ministro II.

cip commented 12 years ago

The jpg issues may also be related to the svg issue described here: http://comments.gmane.org/gmane.comp.lib.qt.android/3067 In addition related may be an issue that SQL (tried with WikiOnBoard) did not work on Emulator 2.2., but worked on Samsung Galaxy S 2.2.1.

cip commented 12 years ago

Issues with jpgs (sqllite, svg) may be related to armeabi: Apparently only working with armeabi v7.