Discussion Forums  >  Capturing Images, Uploading Data

Replies: 10    Views: 265

LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
09/06/12 03:32 PM (11 years ago)

image gallery self hosted question

Hi all, the image gallery plugin for my self hosted server is working fine, just wondering how I can have the images in full screen (IOS) like on the example pictures of the plugin. It doesnt matter which size my images have (320 x 480 or 640 x 960) there will always be space on the left and space on the right side of the screen. Sure, I can tab on the screen and zoom in and out, but would just like to have the images fitting perfectly in the screen without this border. Would appreciate any help here.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/06/12 03:48 PM (11 years ago)
That's a darn good question! I was thinking there was an Advanced Properties setting for that in the control panel, but I can't find one. When I put images in my gallery, I put them at a resolution that would naturally fit an entire iPad screen. Then they scale down well for iPhone. For all my images that are like that, I don't see the borders that you speak of. Might be something to check out. Mark
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
09/06/12 04:00 PM (11 years ago)
Just made a screenshot to make it a little bit clearer: http://www.montesino.at/images/galleryprob.PNG That image is actually 640 x 960...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/06/12 09:44 PM (11 years ago)
Most folks use a black background on the screen so it looks / feels like the native image gallery. But...it does seem like you should be able to get an image to scale to full screen without a border, so the edges cover up. Aside from using larger images, you could try tinkering with the "padding" constant in the BT_screen_images.m file. Look on about line 49, you find... #define PADDING 10 Test by setting that to 5, then 1, then 0 (zero) maybe. Haven't message with that in a very long time, bet it works. The idea is that each image gets a frame (rectangle) to show itself in. It gets this frame by calling the frameForPagingScrollView method on line 698. You'll see in that method where hte frame begins with self.view.bounds (this is full screen) then the x and width values are reduced by PADDING. If PADDING is zero, they should not get moved down and left a bit, nor will they get less width. Zero should produce full width, starting at top left corner. Give it a shot, bet it works.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
09/07/12 06:27 AM (11 years ago)
It was my understanding that an image gallery plugin does not exist yet which is the only reason I haven't made the jump to 2.0. If one exists PLEASE let me know!
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
09/07/12 08:08 AM (11 years ago)
Hey Mutzy. This is the only one I am aware of; https://www.buzztouchmods.com/downloads.php?cat_id=1&download_id=28
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
09/07/12 10:25 AM (11 years ago)
Hey David, thx for the quick reply but unfortunately PADDING doesnt change anything. Even changed it to 50, just to see if anything happens at all, but no. Any more ideas? @mutzy using the one Red Dog linked to yes.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
09/12/12 02:06 PM (11 years ago)
So nobody can help here? Am I the only one with this problem?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/12/12 11:37 PM (11 years ago)
Hi @LeonG: Yup, I tried adjusting the padding too..doesn't change anything. It's all about the scale of the image to "fit" in the device before and after tapping / zooming / panning. To make matters more complicated, retina devices may do different scaling too. Sigh. I'm guessing you've experimented with different image sizes / scales / dimensions? I'm thinking the only thing you'll be able to do here is... a) Set the screens background color to black (the gallery screen) b) Use larger images that iOS naturally scales to be full screen before any zooming is done.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/11/12 02:36 PM (11 years ago)
tried everything, nothing helps :( no change either with iphone 3, 4 or 4s. Does nobody have an idea?
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/16/12 05:21 PM (11 years ago)
So all images galleries on 1.4, 1.5 or 2.0 have the same problem? Nobody cares that the images do not scale to full screen like the native images do? I cant believe the community cant fix this.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.