Community Questions & Answers

Uploading an image from iOS App

I am trying to upload an image from my camera roll to my server. The php code works fine by itself but I can't get to upload the image from my app. I always get a 404 error. PHP Code ~~~ <?php $allowedExts = array("gif", "jpeg",...

Rounded Images: Titanium

I want to show user images in rounded shape, I am using alloy framework for development what I have tried so far 1) Border radius: Using this I am able to convert image to rounded but the edges are blurred/pixelerated overlay a circular view, I am...

splash screens and app icon

I've searched how to change my splash screen and saw the solution was to 'replace the Default.png in android/Resources'. So I deleted the default.png and put in a different image and called it default.png but this didn't work. What am I doing wrong? Also,...

get splash screen file name

Hi, I'm looking for a way inside my app to get the splash screen image for the device I'm running on - for old iphones it would be iphone/default.png, for retina @x2 for iphone 5 the bigger one, and for android there are much more possibilities. Is there...

Move, Scale and Crop an Image

This question is related to **[Crop Image in Preview Screen](http://developer.appcelerator.com/question/175092/crop-image-in-the-preview-screen)** I would like to crop an image in a specified size(320x160). I was able to create a preview screen, which...

hide PhotoGallery

Hi guys and gals, This is sort of a half question / half answer. I've noticed that in the Ti Docs you can set autohide to true / false for ''openPhotoGallery". However there is no call to hide the Photo Gallery like there is with the camera...

Creating pdf from image and upload to the server

I am developing mobile application using titanium and targeting for both android and iOS platforms.I need to do one task where i have to create a pdf file using image/photo taken by camera.and then upload it to the server. I am using titanium sdk version...

Blob image format

The documentation is extremely vague when it comes to images. I have been looking all through the documentation and cant find an answer to this: When I say file.write(myImageBlob), what format is in that image blob? Every example I find seems to assume...

photos rotating

HI, I was working on a project where users could upload photos. I am using the imagefactory module ~~~ var ImageFactory = require('ti.imagefactory'); Upload_pic.addEventListener('click', function...

Android 4.0+ Image Compression

Is there a way to compress images on Android devices using 4.0 or greater? I've tried using the ImageFactory: ~~~ var compressedImage = ImageFactory.compress(event.media, 0.2); f.write(compressedImage); ~~~ And that code works great for iOS, but it does...

Is it possible to slice an image into real small pieces?

Hi, I have a square image and I wish to slice it into 16 real pieces of same dimensions. Is it possible to do that in Titanium? I saw some questions about this but it is not clear if the sliced image is really a portion (size in byte of original image /...

SQLite Select all record performance

I m using Titanium 3.2.3 SDK and developing for ios 7 .My apps taking picture storing image path at sqlite and showing tableview.but there is a performance problem with tableview. Because each image 1.5 MB and in one screen 2-3 image. its maybe 100-1000...

Can not display Android Remote Images

I have an image view and try to load remote image but it's can not show up. I'm already search and try any suggestion on this forum but not work. I'm using SDK 3.2.2 on Mac OS X Maverick My code is like here, and it's running good on iOS. ~~~ var...

Space issue below Images

I have a description page where there are information about any product.. The description has various categories. I have a description about eye of 2 lines and then an image of an eye. (30x30). I am using following code to add images ~~~ for (var i in...

Image store and retrieve

Hi, How to store and retrieve image in database through webservice? In database image field type is varchar. I am using alloy framework and titanium sdk version 3.2.2.GA. Please help me. Thanks, Ankita

alloy tss image path

I'm using Alloy and I wrote in app.tss file: ".container": { backgroundImage: "/images/background.png", exitOnClose: false, navBarHidden : true } I expect that if I put a file called background.png in each of...

save image to gallery in android

Application type:Mobile,titanium sdk:3.2.1,titanium studio:3.2.1,platform:Android,OS:Windows 7 ~~~ Ti.UI.setBackgroundColor('#fff'); var win=Ti.UI.createWindow({ backgroundColor:'#fff', // layout:'vertical' }); var...

How can I strip, or set specific Image Exif data

When we use the facebook module, for example, to post an image; The image on facebook is rotated. This is because the exif data has orientation data in it. Looking around, the solutions i have found are either 2-3 years old or older, or just don't...

Get File Name of openPhotoGallery ?

Hey, i there any Option to get the name of an image, choosed by "openPhotoGallery"? I've read about event.media.nativePath in the succes handler, but this just returns a null to me and i dont' have another idea to solve this. :/ Best, Nico

Swapping images using buttons

Hi everyone. I'm working on a little project where there would be a picture of a product, with buttons underneath that are colour swatches. I'd like to be able to tap on a swatch, and load a new image in place of the original image. The images are...

No Images in local HTML File ???

Why cant show images in a local html code at ver.1.2.1 Has changed the way of path the image? <img src="../img/img.png"> not work <img src="app://com.bal.bal/img/img.png"> not work In KitchenSink the same problem. ver....

CustomObject photo

Hi I'm trying to upload a photo to a customObject using the acs API. I managed to upload a photo to the 'Photos' Table, but not to the customObject. When running the following code to upload an image to the photos table i eventualy see the image and can...

Showing 1-50 of 1,214 1 2 3 4 5 625