Discussion Forums  >  Uncategorized

Replies: 2    Views: 217

tonycelestino
Aspiring developer
Profile
Posts: 213
Reg: Jun 24, 2011
Maceio
4,080
08/21/11 06:00 PM (14 years ago)

Image Uploader size - resolution

Hi, Is there a way to improve the size of the images sent with the image uploader option? Thank you.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/22/11 01:50 AM (14 years ago)
As in...smaller - larger? Two things to keep in mind / modify... a) What is the device sending? b) Where is it sending the image, your backend or the buzztouch backend? If you're asking about how to modify the image itself, you'll do this in iOS. If you're asking about the backend script that saves the image...you'll need to create your own image handler on our site to make any changes. Hope this makes sense.
 
tonycelestino
Aspiring developer
Profile
Posts: 213
Reg: Jun 24, 2011
Maceio
4,080
like
08/24/11 01:58 PM (14 years ago)
*Edited by the author* Hi David, thanks for the reply. It does make sense. I figured it out, very easy actually, should have looked into it before posting. :P If anyone has this same questions, here's the 1-2-3 answer: 1. At BT_screen_imageUpload.m search look for this code: //scale image to size of screen if(selectedImage){ //delegate videomachine_appDelegate *appDelegate = (videomachine_appDelegate *)[[UIApplication sharedApplication] delegate]; int newWidth = 320; int newHeight = 480; if([appDelegate.rootApp.rootDevice isIPad]){ newWidth = 768; newHeight = 1024; } 2. Change the newWidth and newHeight (the first two are for iPhone/iPod and the last two are for iPad). 3. Build, run, and be happy!
 

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.