Community Questions & Answers
Label Text auto font size on resize
Do you know how to auto-fit fontsize when label witdh/height size is changed? I have lib that resize image on pinch event so I use it on label. I cant simply use event.scale and multiply it with current font size either. If we know the the width and...
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 ?
Resizing/Scaling images to view in 3.0.2 for iphone and android
I can't seem to reliably get my images to resize. I am getting images from the internet, so I can't just change the size of them. When I try to just set a height or width on the image view, sometimes i get the image scaled correctly, but the border...
Resize small photo without stretch
I have an image in 75x75 and 100x100. Now I want to set the image into an image view with width and height set to 190x210. When i tried it, the image will stretch and looks blur. I don't want the image to stretch cause it will make it blur. How can I...
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...
Image resize and position on top (bug?)
I have this code: ~~~ function FirstView() { //create object instance, a parasitic subclass of Observable var self = Ti.UI.createView({ backgroundColor: '#123456' }); var title = Ti.UI.createImageView({ left: 0, top: 0, image:...
Can I scale an ImageView, ignoring it's original aspect ratio?
I have an ImageView I've added to a Button that loads an image from a server. When I set the height and width properties the image scales, but it maintains it's original aspect ratio. I'd like to stretch the image instead. Is this possible? Thanks!
Android imageview resize and rotate
We have a few iOS apps with a feature to add images to a photo from the gallery. The image can be drag/dropped, rotated, and resized w/ pinch pull, and then saved to the photo. Works perfect. We are attempting to port the functionality over to Android but...
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...
Android bug: TabGroup doesn't resize
Hi, Just to report a bug on Android (iPhone is OK). Ti 1.2.1 Ti SDK: 1.3 ~~~ var tabGroup = Titanium.UI.createTabGroup(); tabGroup.height=410; tabGroup.bottom=0; tabGroup.open(); ~~~ On iPhone, the tabGroup is well resized. On Android, the tabGroup...
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 =...
Help to crop resize picture when i have no idea the real size
Hi ( sorry for my bad english i'm french ) i have problem .. I want create Titanium App who list all picture include in a facebook page . No problem for have this picture but my problem is to resize/crop this picture ... it's difficult because i have no...
iOS Soft Keyboard Expands View
I am building an iOS app on Titanium 2.0.1 and have run into a weird issue. I have a table that a user enters values into and on the bottom is a button in a view placed as the footerView of the table. When the user clicks on a table field to type in a...
How display remote loaded image in its original size/format (without resizing)
I am trying to display remote images inside a scrollableview. All works fine except the displayed image are resized depending on imageView property. I don't manage to display them in their original format (all the images have the same fix width). Moreover...
Having an issue uploading an image
This is working on the iPhone but for some reason with android the image uploads, it is the correct size but it is corrupted. What i do below is take the photo, resize it using image factory (the image is fine after resize. Im looking at it on the phone)...
How to not resize window when status bar height changes?
I'm building an iOS5 app and have trouble with some layout issues when the status bar height changes (e.g. during a phone call - press CMD+T in the simulator for the effect). Whenever the status bar height changes, the window height is adjusted, so it...
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...
Scaling issues on large screen devices (HTC sense, Samsung Galaxy)
Hi, We've developed an app in a fix screen resolution, which displays fine on the iPhone and Android normal size devices. However on large screen devices (such as HTC sense and Samsung Galaxy), it doesn't seem to resize properly. Is their any solutions...
Blob.imageAsThumbnail() is not adding border nor border cuve to image?
First I have to do some workaround since my image is in _SVG_ format so have one _WebView_ that converts it to _base64_ using _canvas_ element. Now that I have my _base64_ representation of image I do this: ~~~ var blob =...
Can't encode ImageView to base64-string
I use the camera function to take a picture and assign that picture to an imageView with a smaller width and height (in order to decrease my filesize of the pic when I am sending it later on). In order to send the picture via xml, I need to convert it to a...
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...
Automatically Create Resized Images For iOS Applications?
Is there a mac program (or even windows) where I can batch feed in my image_ipad.png graphics and it will spit out the resized and correctly named image_iphone.png and image@2.png files? Thanks
Orientation changes only render/resize active window
Hi, I have couple of windows on a screen, say win1 (which is in front and active) and other win2 (which is in background of top active window). I am using % way for expansion of these windows. Say win1.width : '50%' and win2.width='75%'; Now on...
Splash Screen Multiple Sizes
I have developed an app for Android and I have included a Default.png with resolution 480*854. now this works for a number of devices, but is there a way to include multiple splash screens so that the splash image is not distorted on multiple devices?
resize webview inside of scrollview
Hi, I various WebViews inside a ScrollableView. In portrait orientation, I set each WebView to 600x980, and shows good. Now, I want to resize each webview when the device (ipad) change the orientation to landscape, to 980x600, but I try and not works. I...
resize imageview gives bad quality
Hi guys, I wonder if somebody has a solution for this problem. Added an image via createImageView works, but when I resize it to half the size the quality of the image displayed is really bad. It becomes even worse with <supports-screens...
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({...
Is there a way to resize Image buttons for iPhone/Android?
Basically what I'm doing is building an app for both iPhone and Android, and on the pages there's a button that fits the width of the iPhone screen (about 320px wide), and when I try to run the item in the Android emulator the image doesn't scale and ruins...
Resize Backgroundimage from window when the orientation change?
i hope you can help me. I want that the Background image fit to the screen when the orientation changes. At the Moment i looks like this:  When i click on the Picture a new window will open with...
Image auto height with fixed width problem
~~~ var win = Ti.UI.currentWindow; var view = Titanium.UI.createView({ backgroundColor:'blue', width:300, height:400, }); var fig =...
Please post working code for Android image resize
I've tried just about everything I could find on the forums to resize an image (from the device camera, for uploading to a server) without luck. If you have code that you know works with Appcelerator 1.4.1 on an Android device I'd be most appreciative if...
Fix for thumbnail (since the one in the API is iOS only)
I had an app where loading remote images (and sizing them) was being a pain (for Anrdoid, naturally). Below is a snippet of code I use that works flawlessly on both iPhone and Android. What it does is get the remote image (in this example, I have it...
image resize by reducing its dpi
Hi everybody, is there any way to reduce the dpi of an image in appsceletor API's ? hoping for any help soon....
Image Resizing For Mobile Application
does anyone know..how to create android application use more image for button and background,,and auto resize follow screen size??
Android image resize memory consuption
I have a very simple window with an image background. It is the main window of my application and it crashes right after the boot. The logs are pretty interesting: ~~~ 11-29 16:36:16.590: ERROR/dalvikvm-heap(447): 38048-byte external allocation too large...
rightButton size in a mapView
Hi all, I have this annotation on my map.js: ~~~ var myPin = Titanium.Map.createAnnotation({ title: 'My title', pincolor: Titanium.Map.ANNOTATION_GREEN, animate: true, rightButton: '../contents/images/1.jpg' }); ~~~ I would like to specify the...
Images on tabbedbar resize incorrectly on device rotation
Using the kitchensink example "Base UI->Views->Scroll Views->Scrollable Views", iphone Simulator and Titanium SDK version: 1.7.2. The screen with the scrollable views is displayed correctly in portrait mode on iPhone. On the bottom of...
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'...
Resize photo from camera before save?
Hi Guys When i take a photo and store it in my app, the image size is HUGE! (2mb ish) How do i get the image size down to a sensible size before i save it? Im using ~~~ var image = event.media; var f =...
Resize and Upload Error - file not sent from .toImage()
Hi, I'm trying to resize and upload a photo taken from the phone's camera, but am coming up against a bug. In the code below, nothing is arrives in the $_FILES array on the server for some reason. If I send pic.media, instead resize.toImage(), it all...
Desktop App to Upload images, resize and save
I am new to Titanium and I am trying to figure out how I can use HTML and PHP to upload photos, resize them and save different size variations of them to a folder. I was considering also using a flash upload utility or possibly something with jQuery. Any...
SplitWindow Title Controls & Image
I've noticed that when you set a title image for the masterWindow of a splitWindow that it will resize to about 1 pixel in width if you rotate the device around (one complete time). Are there any fixes for this?
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