Calculates the least density that can be used to store n bytes into loaded image.
calculated density, or zero in case of error
See Implementation
Calculates the least density that can be used to store n bytes into loaded image.