Discussion Forums  >  Images, Documents, File Locations

Replies: 10    Views: 82

hbranum
Lost but trying
Profile
Posts: 8
Reg: Jul 28, 2012
Moore
80
07/11/13 06:09 PM (11 years ago)

Vector Images Help

I am trying to use vector images in my app however I cannot for the life of me figure out how. I have created my vector images in Adobe Illustrator (svg files) but when I put these folders in the BT_Images folder and try to use the image xcode does not recognize it. I am super new to making apps and creating vector images so if there is a better way to do all of this I would be grateful for the help. Are svg files the correct format? Is there an easy way to use vector images?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/11/13 06:15 PM (11 years ago)
As I understand it, that's not a native iOS function. You'll have to insert some kind of interpreter between the image and the OS. https://github.com/SVGKit/SVGKit Cheers! -- Smug
 
hbranum
Lost but trying
Profile
Posts: 8
Reg: Jul 28, 2012
Moore
80
like
07/11/13 06:34 PM (11 years ago)
Hello Smug! Thanks for the link. I was searching the web earlier and came across that same link. However, I was unable to figure out how to properly set up the SVGKit with xcode and Buzztouch. Would you know how to set it up? If so I would really appreciate the help. Thanks -Heath
 
hbranum
Lost but trying
Profile
Posts: 8
Reg: Jul 28, 2012
Moore
80
like
07/11/13 06:40 PM (11 years ago)
Hello Smug! Thanks for the link. I was searching the web earlier and came across that same link. However, I was unable to figure out how to properly set up the SVGKit with xcode and Buzztouch. Would you know how to set it up? If so I would really appreciate the help. Thanks -Heath *EDIT Sorry about the double post. I'm not sure what happened.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/11/13 06:41 PM (11 years ago)
Perhaps a better question to start with is "why do you need vector images instead of png's?"
 
hbranum
Lost but trying
Profile
Posts: 8
Reg: Jul 28, 2012
Moore
80
like
07/11/13 06:45 PM (11 years ago)
The images I am using look fine in xcode, but when I run the iPhone simulator the images look really bad. They are pixelated and blurry. I don't know if I am just doing something wrong or what? I would much rather use png files, but I don't understand why they look so bad on the simulator?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/11/13 06:50 PM (11 years ago)
What format did you save the png files in? 8-bit or 24-bit? For best results, use 24-bit. If that doesn't work, post a dropbox link to one of the images and we can take a look to see what might be the issue.
 
hbranum
Lost but trying
Profile
Posts: 8
Reg: Jul 28, 2012
Moore
80
like
07/11/13 07:06 PM (11 years ago)
I tried converting the image to 32 bit (I didn't see an option for 24 bit). It still looks bad in the simulator. Here is a link to the image: https://dl.dropboxusercontent.com/u/53809421/beta_crest.png
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/11/13 07:21 PM (11 years ago)
Looks fine on mine: https://dl.dropboxusercontent.com/s/w07ru5fkvn7vclz/Screen%20Shot%202013-07-11%20at%208.17.26%20PM.png?token_hash=AAGmCza-ZF2ukI-XR14qo0Gxrl06omikM61tGEjFYJKz0Q&dl=1 Try doing a 'reset content and settings' on your simulator and seeing if that does anything. The old one might be stuck in cache.
 
hbranum
Lost but trying
Profile
Posts: 8
Reg: Jul 28, 2012
Moore
80
like
07/11/13 07:30 PM (11 years ago)
Oh sorry, maybe I explained it wrong. The image look fine when large. However I am using the image as an icon and it looks bad in the simulator when scaled down. This is why I was trying to use vector images. When I make this image smaller it gets blurry.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/11/13 07:31 PM (11 years ago)
i see - I would consider scaling down the image in whatever image editing program you're using and saving it as a second image in the app, rather than make the app do the work.
 

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.