Image not importing right?

I have an image that is 100x100 pixels. When I import it into Unity and click on it in the Project panel, it shows the image to be 128x64 in the Inspector preview. This is really frustrating, and it happens with any image.

Textures are usually imported with power of two dimensions due to optimisation for mipmaps. If it’s a GUI (so called pixel perfect) texture, change the texture import settings. There are many predefined settings or use advanced if you want to use a special combination (filtermode / non-power-of-two / mipmaps / …).

That’s also why textures should have a power of two dimension when you create them. Again, for GUI textures it’s fine if they have an arbitrary width / height, but you have to set the importer to GUI.