KristianLyng / compiz

Compiz 0.8-work which may or may not be awesome
Other
15 stars 3 forks source link

Image file paths are ambiguous #27

Closed KristianLyng closed 9 years ago

KristianLyng commented 9 years ago

First, we check THREE different paths, inclduing PWD. We should never check PWD for files.

Second, file names (not path) are not absolute.

If you have foo.png and foo.jpeg in the same folder, one being a picture of a cat and the other a backup of goatse, you will get a different result depending on what order the image format plugins are loaded. This is wrong.

It also makes it impossible to report proper error messages. You'll get a ton of file not founds, even if you do succeed opening an image.

This needs to be cleaned up, not hidden away. See #3 for why this is a problem. I'm adding some output, but we're going from no output to too much output.