Community Questions & Answers

Android Camera.app size

On certain devices, when you take a photo there isn't enough memory available to take the e.media blob and resize it down from say an 8mp image > 640 x 480. The only way I am able to get around this is to put my resize function in a try/catch and the...

Problems resizing camera image in Android

There doesn't seem to be a sure fire way to resize camera images in Android. I have an app what works perfectly in IOS, intermittently in Android. When I get the image (x), I call x.media.imageAsThumbnail(88) and often get an exception that just says...

Resize remote image

Hi guys, I need to resize a remote image to a specific width so it fits my screen. Since I'm developing for blackberry using titanium, the sdk is very old. Anyone got a way to do it?

convert color image to black & white

Hi, I found so much articles for resizing the image taken by camera and from phone gallery. But i want to know if there is any method in appsceletor API for converting color image to a black & white image ?

resize images in cover flow

I have a problem, i need to dynamically insert images into a cover flow view but i don't know their dimensions. I was thinking to create a label put the image as background and than use the toImage() and pass it to the images array in the cower flow...

Can photos be resized on the device?

I am developing an app that allows users to upload photos from their iPhone photo gallery and camera app. Unfortunately, these images can be quite large and take a long time to upload, even over a 3G connection. Is there any way to resize the photo on the...

how to set size for Titanium.UI.Switch?

In this docs I can see property "Size" https://developer.appcelerator.com/apidoc/mobile/1.0/Titanium.UI.Switch When I try to set it like this ~~~ 1 var win = Ti.UI.currentWindow; 2 3 win.title = L('windowTracking'); 4 5 var SwitchTracking =...

Photo overlay with image

Is it possible to do the following in appcelerator: 1. Select an image from the photo gallery 2. select an image, from a list of images, drag it onto the photo, move/resize/rotate the image 3 repeat 2 and/or save the photo with the image(s) on...

image resizing doesn't work in iphone

This is what I found in one of the forums but it doens't work on iphone. What changes should I make? here's the code: ~~~ function resizeImage() { var image = imgview var maxWidth = 800 var tmp = image.toImage().media; //<=========This...

iPad Popover and Keyboard problem

~~~ var popover = Ti.UI.iPad.createPopover({ width: 400, height: 490, arrowDirection: Ti.UI.iPad.POPOVER_ARROW_DIRECTION_UP, title: 'Test' }); var view = Ti.UI.createView({ width: 400, height: 490 }); popover.add(view); view.add( Ti.UI.createTextField({...

Photo resizing

Hi, i want to know how can i do to resize a photo. I want to resize it in order to weight smaller than when they were taken with the camera. (900kb --> ? 400kb) For now my code is like that. What sort of thing i'm doing...

Resize a photo

Hi, i want to know how can i do to resize a photo. I mean that i open the camera to take a photo, i take it but when i take it i want to resize it (less pixels:1024x748 --> 800x600 for example) in order to have a smaller picture.

Image Resize with two finger touch

Hi everyone, I'm trying make an app which if able to resize an imageView by a two finger touch and move. If the fingers are moving the image will resize (depending on whether the fingers are closing in or not). Do you have any tips, ideas or possible...

resize image on rotation HELP!

I need my images to change sizes depending on how the iPad is oriented. If I set the width and height to auto, it looks good on portrait mode, but when I flip to lanscape, the image is too big. I tried to change the size with the 'orientationchange'...

How to resize a photo?

I'm trying to take a photo with the camera, then add it to a window and resize it to be the exact shape and size of the phone's screen. The problem is depending on the settings of your camera, the image ends up being anywhere from postage stamp size, or...

Move elements around

I'm trying to make an application where I can select one of many views and drag it around, and do a resize of the element. Then I can select one of the others views and do the same. Is this possible? Currently I have just achieved this with one element,...

Showing 1-50 of 59 1 2