Discussion Forums  >  Images, Documents, File Locations

Replies: 5    Views: 148

Highveld
Aspiring developer
Profile
Posts: 25
Reg: Feb 03, 2013
Brisbane
3,500
02/13/13 01:50 AM (12 years ago)

Adding images to app

Hi I am wanting to add images along with my content to my app however I dont know the best way to go about it. I tried using html plugin but the size of the image changes when you switch from iPhone simulator to iPad. Is it better to use a word doc or a PDF doc? The only trouble with PDF doc is you need to making the writing in quite a large font for it to be readable on iPhone but then is quite large on iPad. Any help would be great! Regards Lloyd
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/13/13 02:36 AM (12 years ago)
If it's in an HTML Page you can specify the size.... <img src="http://myimagesource.com/image.png" width="200" height="150" /> Cheers! -- Smug
 
Highveld
Aspiring developer
Profile
Posts: 25
Reg: Feb 03, 2013
Brisbane
3,500
like
02/13/13 02:45 AM (12 years ago)
Hi Smug But what about in iPad? That will to small then? I have experimented with the html plugin but i can get it the right size for iPhone but then its to small for iPad. How would I ensure that it looks the same in both iPad and iPhone Regards Lloyd
 
Highveld
Aspiring developer
Profile
Posts: 25
Reg: Feb 03, 2013
Brisbane
3,500
like
02/13/13 02:47 AM (12 years ago)
How would you add an image into html that will resize on both iPhone and iPad? Regards Lloyd
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
02/13/13 03:25 AM (12 years ago)
If you use the [Custom HTML / Text] screen you have an option to use a background. The background images will give you the option to use an image for Small Device (iPhone, iPod etc) and Large Device for (iPads etc) That way you could use it along side your content.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
02/13/13 10:25 AM (12 years ago)
Use the blank screen plugin. Now convert the PDF into a JPEG or PNG. Put the JPEG image as the screen background (and don't put anything on the page. The beauty of this, is that you can have two files, one for iPhone and one for iPad and you can state in the control panel that there is different background image for small devices and large.
 

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.