Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only accept .ff as path extension for Farbfeld #2181

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

foresterre
Copy link
Contributor

@foresterre foresterre commented Mar 25, 2024

Now only accepts .ff as path extension for Farbfeld

This is consistent with ImageFormat::extensions_str, and usage by other image libraries and tools.

@fintelia
Copy link
Contributor

fintelia commented Mar 26, 2024

Is ".farbfeld" actually an accepted file extension for the format? I tried finding references online, but both this wiki page and the Ubuntu man pages both just mention ".ff". The main page doesn't even indicate a file format

@foresterre
Copy link
Contributor Author

That's a valid question. I've not seen .farbfeld completely written out as an extension outside this library. Usually, the header or .ff extension is used.

@fintelia
Copy link
Contributor

In that case, could you instead change from_extension to only support ".ff"?

This is consistent with ImageFormat::extensions_str, and usage by other image libraries and tools.
@foresterre foresterre force-pushed the consistent-extensions-farbfeld branch from 0768024 to 2c29900 Compare March 26, 2024 18:45
@foresterre
Copy link
Contributor Author

foresterre commented Mar 26, 2024

Certainly!

(Whoops pressed the wrong button)

@foresterre foresterre closed this Mar 26, 2024
@foresterre foresterre reopened this Mar 26, 2024
@foresterre foresterre changed the title fix: Consistently return all Farbfeld extensions for ImageFormat::extensions_str refactor!: Only accept .ff as path extension for Farbfeld Mar 26, 2024
@foresterre foresterre changed the title refactor!: Only accept .ff as path extension for Farbfeld Only accept .ff as path extension for Farbfeld Mar 26, 2024
@fintelia fintelia merged commit 4594c80 into image-rs:main Mar 26, 2024
62 checks passed
@fintelia
Copy link
Contributor

Thanks!

@foresterre foresterre deleted the consistent-extensions-farbfeld branch March 26, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants