danuel36 / telekinesis

Automatically exported from code.google.com/p/telekinesis
0 stars 0 forks source link

Screen Grab does not work at 1920x1200 resolution #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The iPhone appears unable to display an image at 1920x1200. After being unable 
to load the screen 
app, I reduced my resolution to 1600x1200 and it worked. I then tried to load 
an image sized 
1920x1200 directly in to the browser and that failed to load as well.

This is more a limitation of the iPhone than a bug in the app, but perhaps the 
resolution could be 
automatically adjusted when the screen app is called, or the image could be 
scaled before being 
sent to the browser.

Original issue reported on code.google.com by bwan...@gmail.com on 6 Jul 2007 at 3:56

GoogleCodeExporter commented 8 years ago
hmmm.. any image? what is the file size? I think it can support pretty big 
images.

Original comment by j...@gmail.com on 6 Jul 2007 at 5:20

GoogleCodeExporter commented 8 years ago
Yeah, it seems to be any image. I experimented with some plain white PNG's from 
photoshop to see what the 
limits are. The largest image I can display is 1747x1200. If I go to 1748x1200 
or 1747x1201, the image will not 
load.

I attached an image that fails to load on my iPhone.

Original comment by bwan...@gmail.com on 6 Jul 2007 at 5:37

Attachments:

GoogleCodeExporter commented 8 years ago
curious. does the same hold true for jpeg? I'm under the impression that they 
can be much bigger.

Original comment by j...@gmail.com on 6 Jul 2007 at 5:39

GoogleCodeExporter commented 8 years ago
I just tried a 1920x1200 screen grab in jpeg, that displays, but it resizes to 
480x300.

Original comment by bwan...@gmail.com on 6 Jul 2007 at 5:41

GoogleCodeExporter commented 8 years ago
how odd. and won't let you zoom in?

I suppose we could scale the image to the size you specified, but it'll require 
the javascript be redone to handle 
the scaling. it may take a little while.

Original comment by j...@gmail.com on 6 Jul 2007 at 5:48

GoogleCodeExporter commented 8 years ago
Yeah, it actually says in the title bar the image is 480x300, so it must be 
resizing it in the cache before it is 
even drawn.

I also tried sending a large png image to mail, and it can't display them there 
either. It just spins "loading..." 
forever.

I can work on the javascript scaling changes, but how would it determine the 
original size of the image to get 
the scaling ratio correct? I assume javascript would need to just call a page 
that returns the resolution, and if 
that differs from the retrieved image size, switch to the scaled functions.

Original comment by bwan...@gmail.com on 6 Jul 2007 at 5:55

GoogleCodeExporter commented 8 years ago
hmm... good point. right now the image size itself is used.

I've been avoiding a second request to get metadata about the image, but this 
might require it.
What we should do is send both an origin and a size as a second xml chunk. This 
will support a future mode 
with partial screen updates.

Original comment by j...@gmail.com on 6 Jul 2007 at 6:05