Gets the aspect ratio of pixbuf by reading the 'aspect-ratio' pixbuf option.
pixbuf
a Pixbuf
the aspect ratio, or 0 if the option is not set or its value is invalid.