Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been looking at some example apps from the Ubuntu SDK and from the Touch Developer Preview source code, and I've noticed that some images used as assets in those apps have a suffix with an @ sign followed by a number. E.g. avatar@8.png

What is the purpose of naming images like that?

share|improve this question
add comment

1 Answer 1

This is related to Resolution Independence in the Ubuntu SDK. Currently the documentation for this part is missing, but it should be added soon.

Taking the avatar@8.png image file name as an example, the @8 suffix refers to the DPI in which the original image was created.

That information will be used in the resolution independence calculations that will happen when scaling the image. When referencing to the image in the code, you should use the name without the suffix, e.g. avatar.png

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.