webOS Nation Forums >  Homebrew >  webOS patches > [Patch] Immediately load high resolution in webOS 2 photos app
[Patch] Immediately load high resolution in webOS 2 photos app

  Reply
Like Tree2Likes

 
LinkBack Thread Tools Display Modes
Old 08/16/2011, 07:10 AM   #1 (permalink)
Homebrew Developer
 
Join Date: May 2010
Location: Germany
Posts: 519
Likes Received: 22
Thanks: 44
Thanked 130 Times in 76 Posts
Default [Patch] Immediately load high resolution in webOS 2 photos app

I've created a patch that makes the webOS 2 photos app much more usuable.
Normally, it takes a few seconds until the app loads the high resolution version of a photo.
Digging through the code I noticed how ill they implemented displaying the photos, they're using delays without end.

This patch makes the app loading the high resolution version of a photo immediately.
A big disadvantage is the high memory usage when viewing many pictures. (With a bit more patching there would be a way around this.)

Please give me feedback on how this patch works for you, and do not submit this patch to the portal (yet).

Thanks

Changelog:
v0.0.1: Initial release
v0.0.2: Fixed conflict with other apps (like camera app)
__________________
Apps: QuickChat for Facebook - real-time Facebook chat on your TouchPad and webOS phones
Archive Manager - a great app for extracting and creating archives (zip, rar, 7z etc.)
FTPit! - full-featured FTP client for webOS
Twitter: @pcworldSoftware

Last edited by pcworld; 01/04/2012 at 02:22 PM.
pcworld is offline   Reply With Quote
Liked by Rnp and matteebee13 like this.
Thanked by matteebee13, Rnp
Old 08/16/2011, 12:53 PM   #2 (permalink)
Rnp
Member
 
Rnp's Avatar
 
Join Date: Jan 2008
Location: Rio de Janeiro - Brazil (Oh, Yeis!!!)
Posts: 715
Likes Received: 76
Thanks: 857
Thanked 43 Times in 36 Posts
Default

Tested and aproved!!


Best Regards...
__________________
[b]"Evolution History... Or Not!"


Basic Math: Pre + Pre - Pre 2 ≠ Preł :-\
Rnp is offline   Reply With Quote
Old 08/17/2011, 12:09 AM   #3 (permalink)
Member
 
T-ulk's Avatar
 
Join Date: Apr 2005
Posts: 413
Likes Received: 1
Thanks: 5
Thanked 7 Times in 4 Posts
Default

it works but it breaks the preview of pictures in camera app. Preview stays very blurry.
T-ulk is offline   Reply With Quote
Old 08/17/2011, 12:50 AM   #4 (permalink)
Member
 
matteebee13's Avatar
 
Join Date: Jan 2010
Location: Seattle
Posts: 607
Likes Received: 26
Thanks: 51
Thanked 57 Times in 52 Posts
Default

Quote:
Originally Posted by T-ulk View Post
it works but it breaks the preview of pictures in camera app. Preview stays very blurry.
Works, but +1 to what ^ said. Worth the trade off though as I rarely need to show off my photos using the camera app or just open the photo app. There used to be a patch for 1.4.5 that did this and I am loving this version. Maybe you can figure out the camera app problem and it would be perfect! Thanks a bunch!!!
matteebee13 is offline   Reply With Quote
Old 08/17/2011, 12:53 AM   #5 (permalink)
Member
 
Join Date: Oct 2010
Posts: 901
Likes Received: 83
Thanks: 19
Thanked 121 Times in 101 Posts
Default

Definitely gonna try this one out.
FenrirWolf is offline   Reply With Quote
Old 08/17/2011, 11:26 AM   #6 (permalink)
Member
 
matteebee13's Avatar
 
Join Date: Jan 2010
Location: Seattle
Posts: 607
Likes Received: 26
Thanks: 51
Thanked 57 Times in 52 Posts
Default

Works for on device stored photos in the photo app but not the cloud stored ones like facebook or picasa. Liking it though.
matteebee13 is offline   Reply With Quote
Old 08/17/2011, 11:40 AM   #7 (permalink)
Member
 
jsgraphicart's Avatar
 
Join Date: May 2010
Location: NorCal
Posts: 1,762
Likes Received: 79
Thanks: 51
Thanked 279 Times in 200 Posts
Default

The only thing I really noticed with this patch is that instead of showing a blurry image while it loads, it replaces the blurry image with a black screen and shows the clear image once it loads all the way. I dont really see it making anything faster. Just gets rid of the loading/blurry image before fully loading the image. Am I wrong?
jsgraphicart is offline   Reply With Quote
Old 08/17/2011, 11:52 AM   #8 (permalink)
Member
 
Join Date: Jul 2011
Posts: 13
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default how do we install this patch?

how to install?
Quote:
Originally Posted by pcworld View Post
I've created a patch that makes the webOS 2 photos app much more usuable.
Normally, it takes a few seconds until the app loads the high resolution version of a photo.
Digging through the code I noticed how ill they implemented displaying the photos, they're using delays without end.

This patch makes the app loading the high resolution version of a photo immediately.
A big disadvantage is the high memory usage when viewing many pictures. (With a bit more patching there would be a way around this.)

Please give me feedback on how this patch works for you, and do not submit this patch to the portal (yet).

Thanks
vinjunk is offline   Reply With Quote
Old 08/17/2011, 12:04 PM   #9 (permalink)
Member
 
Join Date: Jul 2011
Posts: 13
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how did you install it?
vinjunk is offline   Reply With Quote
Old 08/17/2011, 12:08 PM   #10 (permalink)
Member
 
jsgraphicart's Avatar
 
Join Date: May 2010
Location: NorCal
Posts: 1,762
Likes Received: 79
Thanks: 51
Thanked 279 Times in 200 Posts
Default

Quote:
Originally Posted by vinjunk View Post
how did you install it?
webOS Quick Install. Or if you have the Internalz app, email it to yourself and open it up with that. It will install it for you.
jsgraphicart is offline   Reply With Quote
Old 08/17/2011, 12:11 PM   #11 (permalink)
Member
 
Join Date: Jul 2011
Posts: 13
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how do you do webos quick install? rookie here. do you install on pc and then transfer to phone? how do i get quick install?
vinjunk is offline   Reply With Quote
Old 08/17/2011, 12:13 PM   #12 (permalink)
Member
 
jsgraphicart's Avatar
 
Join Date: May 2010
Location: NorCal
Posts: 1,762
Likes Received: 79
Thanks: 51
Thanked 279 Times in 200 Posts
Default

Quote:
Originally Posted by vinjunk View Post
how do you do webos quick install? rookie here. do you install on pc and then transfer to phone? how do i get quick install?
http://forums.precentral.net/canuck-...-v4-2-3-a.html

Its a program you download to your computer and use to install patches and apps to your phone. Very easy to use.
jsgraphicart is offline   Reply With Quote
Old 08/17/2011, 12:15 PM   #13 (permalink)
Member
 
jsgraphicart's Avatar
 
Join Date: May 2010
Location: NorCal
Posts: 1,762
Likes Received: 79
Thanks: 51
Thanked 279 Times in 200 Posts
Default

And since you have never used Quick Install, I assume you dont have Preware on your device. I would look Preware up too if I were you and install it with Quick Install. It will change your life. lol
jsgraphicart is offline   Reply With Quote
Old 08/17/2011, 12:27 PM   #14 (permalink)
Member
 
Join Date: Jul 2011
Posts: 13
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I will try JS but I am not very techie. Thanks
vinjunk is offline   Reply With Quote
Old 08/17/2011, 11:59 PM   #15 (permalink)
Member
 
Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
Default

Please add this to Preware

webOS-Patches Web Portal
rmausser is offline   Reply With Quote
Old 08/18/2011, 06:17 AM   #16 (permalink)
Homebrew Developer
 
Join Date: May 2010
Location: Germany
Posts: 519
Likes Received: 22
Thanks: 44
Thanked 130 Times in 76 Posts
Default

Quote:
Originally Posted by jsgraphicart View Post
The only thing I really noticed with this patch is that instead of showing a blurry image while it loads, it replaces the blurry image with a black screen and shows the clear image once it loads all the way. I dont really see it making anything faster. Just gets rid of the loading/blurry image before fully loading the image. Am I wrong?
Yes, this patch omits the low resolution image.
But it makes the app immediately start loading the high resolution image.
Normally the high resolution image gets only loaded when you actually see the low-res one, and then there's a timeout of 0.4 seconds before the app even starts loading the high-res img.
The most stupid thing is that after the 0.4s if you're dragging or zooming, the high-res img loading gets delayed by another 0.5s.
This patch also pre-loads the high resolution version for the next and previous photo.
What device did you test the patch on?

Quote:
Originally Posted by matteebee13 View Post
Works for on device stored photos in the photo app but not the cloud stored ones like facebook or picasa. Liking it though.
I may create a system-wide patch too.

Quote:
Originally Posted by T-ulk View Post
it works but it breaks the preview of pictures in camera app. Preview stays very blurry.
Thanks for the report. I fixed this and uploaded a new version (v0.0.2) to the first post. Please let me know if this issue is resolved now.
To make the image loading in other apps like the camera app faster too, I may create a system-wide patch.

Quote:
Originally Posted by rmausser View Post
Please add this to Preware

webOS-Patches Web Portal
I intentionally did this not yet, because I expected some bugs, and, well, some people discovered bugs.
When the patch is stable and I cleaned up the code I'll submit.
__________________
Apps: QuickChat for Facebook - real-time Facebook chat on your TouchPad and webOS phones
Archive Manager - a great app for extracting and creating archives (zip, rar, 7z etc.)
FTPit! - full-featured FTP client for webOS
Twitter: @pcworldSoftware
pcworld is offline   Reply With Quote
Old 08/18/2011, 11:20 AM   #17 (permalink)
Member
 
matteebee13's Avatar
 
Join Date: Jan 2010
Location: Seattle
Posts: 607
Likes Received: 26
Thanks: 51
Thanked 57 Times in 52 Posts
Default

The new version fixed the camera problem, but the photos still stay blurry for the 0.4s before appearing clear again. The photo app looks beautiful. Keep up the good work, I love what you're doing so far
matteebee13 is offline   Reply With Quote
Old 08/18/2011, 11:21 AM   #18 (permalink)
Homebrew Developer
 
Join Date: May 2010
Location: Germany
Posts: 519
Likes Received: 22
Thanks: 44
Thanked 130 Times in 76 Posts
Default

Quote:
Originally Posted by matteebee13 View Post
The new version fixed the camera problem, but the photos still stay blurry for the 0.4s before appearing clear again. The photo app looks beautiful. Keep up the good work, I love what you're doing so far
As said, the current patch only works for the photos app, and no other app.
I may try to create a system-wide patch too.
__________________
Apps: QuickChat for Facebook - real-time Facebook chat on your TouchPad and webOS phones
Archive Manager - a great app for extracting and creating archives (zip, rar, 7z etc.)
FTPit! - full-featured FTP client for webOS
Twitter: @pcworldSoftware
pcworld is offline   Reply With Quote
Old 08/18/2011, 11:31 AM   #19 (permalink)
Member
 
jsgraphicart's Avatar
 
Join Date: May 2010
Location: NorCal
Posts: 1,762
Likes Received: 79
Thanks: 51
Thanked 279 Times in 200 Posts
Default

Quote:
Originally Posted by pcworld View Post
Yes, this patch omits the low resolution image.
But it makes the app immediately start loading the high resolution image.
Normally the high resolution image gets only loaded when you actually see the low-res one, and then there's a timeout of 0.4 seconds before the app even starts loading the high-res img.
The most stupid thing is that after the 0.4s if you're dragging or zooming, the high-res img loading gets delayed by another 0.5s.
This patch also pre-loads the high resolution version for the next and previous photo.
What device did you test the patch on?
I tested it on a Verizon Pre Plus running 2.1. I'm going to try out the version 2 patch now.
__________________
Back to webOS with my new Touchpad!!!
jsgraphicart is offline   Reply With Quote
Old 08/18/2011, 11:32 AM   #20 (permalink)
Homebrew Developer
 
Join Date: May 2010
Location: Germany
Posts: 519
Likes Received: 22
Thanks: 44
Thanked 130 Times in 76 Posts
Default

Quote:
Originally Posted by jsgraphicart View Post
I tested it on a Verizon Pre Plus running 2.1. I'm going to try out the version 2 patch now.
On a Pre 2 the speed improvement is probably more noticeable.
__________________
Apps: QuickChat for Facebook - real-time Facebook chat on your TouchPad and webOS phones
Archive Manager - a great app for extracting and creating archives (zip, rar, 7z etc.)
FTPit! - full-featured FTP client for webOS
Twitter: @pcworldSoftware
pcworld is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0