recipya
recipya copied to clipboard
Allow Custom Placeholder Image for Recipes by Utilizing User-Uploaded Images
Suggested Improvement
Given that the app supports user-uploaded images in the ~/.configs/Recipya/Images/ directory, it would be logical to store placeholder.webp there as well.
Current Behavior
Currently, recipes without an assigned image display a hard-coded placeholder from the binary:
http(s)://hostname/static/img/recipes/placeholder.webp.
Proposed Behavior
- Check if
placeholder.webpexists in the~/.configs/Recipya/Images/directory.- If it does not exist: Copy the existing hard-coded image from the binary to this folder as
placeholder.webp. - If it exists: Use this image as the placeholder for recipes without an assigned image.
- If it does not exist: Copy the existing hard-coded image from the binary to this folder as
Benefits
- Improved Customization: Users can set their own placeholder, making the app feel more personal.
- Consistency: The placeholder can match the style of user-uploaded images, enhancing the overall aesthetic.
Additional Considerations
- Ensure that the app checks for updates to the
placeholder.webpif the user wants to change it. - Implement logging to track when the app copies the default placeholder.webp to the user’s directory.