-
Notifications
You must be signed in to change notification settings - Fork 95
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
Recipe Image Endpoint should not return two different data types #954
Comments
Hello @Teifun2 and sorry for the delay. I am a bit busy these days... Now I see your point. I would however rather avoid replacing the endpoint in a breaking way. I'd rather deprecate the current image endpoint and add another two:
Another thing to consider would be if the |
And to add to Christian's answer: A recipe image needn't be a JPEG (even though this is probably the case in >99.9%). However, if someone decides to create svg drawings of her or his recipe, we shouldn't stand in the way 😅 |
@christianlupus The idea with Accept is very interesting. I assume this does not work so far? |
No, that is not yet implemented. I think the solution with the headset might be the cleanest solution. Also, this can be implemented additionally to any possible other solution. |
As discussed in #418:
The problem for me is that i am using Network Cached Image widgets. These use they own implementation of the network controller. I can define the behaviour if the recource is not available. However the svg return results in a lot of exceptions as it is accepted as an image but can then not be parsed.
In my opinion it would be better to store the svg in the frontend and dispaly it in case images cannot be loaded, and just return 404 on the endpoint if no recipe image is defined.
This would make it so that the endpoint itself does not change data types.
(I would be willing to try and implement this, if it would be an accepted behaviour!)
The text was updated successfully, but these errors were encountered: