Join Today













Site Sponsor
Results 1 to 1 of 1
  1. #1
    Specialist Genuwine1976's Avatar
    Join Date
    Mar 2010
    Location
    West Memphis, Arkansas, United States
    Posts
    418
    Rep Power
    417

    Post Gallery3D higher res

    Thanx goes to Number22

    I don't know how many of you have noticed, but, although beautiful, Gallery3D doesn't really load images at their full resolution, unlike the default Sense Gallery. Infact, the difference is quite dramatic on my phone. So, today I decided to get the sources and see if something can be done. And indeed it can!
    So I present to you my patched version of Gallery 3D!
    Although I couldn't manage to get it to load full res images, the difference is quite noticeable (but it isn't anything like Sense )
    Anyhow, what's going on here? As some of you may or may not know, Android has a VERY limited amount of memory allocated for bitmaps which are necessary for showing images. For an example, even with the best phones today, you can't load a 5mpx image as a bitmap. That's why Gallery3D downscales images when loading them. The problem is, it doesn't upscale them when zooming in! So, what I did is I downloaded the latest sources from AOSP and changed the downscaling algorithm a bit so the images are downscaled 2x less (which equals to 4x more detail).

    [Comparison]
    I found an image of a transmitter on top of a building to be best for comparison since it has very high contrast and sharp lines. Screenshots were taken off my Desire using DDMS.
    [Only registered and activated users can see links. ]
    Notice how the transmitter and power cables look differently.
    The original photo (5mpx) is here:
    [Only registered and activated users can see links. ]

    [Will it work?]
    So far, this has been reported working on various Sense and Vanilla ROMs. User Airwalker82 reported that even 12MPx images are loaded without problems. Thanks for that!
    This will work on most Android phones that have large amounts of RAM available including, but not limited to, the HTC Desire, Nexus One and Samsung Galaxy S. If the app keeps restarting when opening images, that means that your model doesn't have enough bitmap memory and therefore is not supported by this patch.

    [INSTALLATION]
    If your ROM didn't come with Gallery3D preinstalled:
    Uninstall any versions of Gallery3D present and install the .apk.
    If your ROM came with Gallery3D or the above method fails:
    (Thanks to mikel.1969 for this method.)
    Check out [Only registered and activated users can see links. ] post for a ZIP that you should flash through recovery.
    If you get an error about the file not being signed or the verification failing, you need to turn off verification (the option is available in recovery). You can also check out this post that contains a quick tutorial on how to do it from ROM Manager.

    Attached Files
    File Type: apk
    [HIDE-THANKS] [Only registered and activated users can see links. ][/HIDE-THANKS]
    Last edited by Genuwine1976; 08-25-2010 at 02:12 AM.
    Search and Read First, Then IF necessary ask informed intelligent questions!

    On my Motorola Droid ! With Cricket Android Plan

    WOW On my Motorola Droid ! With Cricket Android Plan

    My home network speeds


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •