recipya icon indicating copy to clipboard operation
recipya copied to clipboard

Allow Custom Placeholder Image for Recipes by Utilizing User-Uploaded Images

Open aaron-r-campbell opened this issue 1 year ago • 0 comments

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

  1. Check if placeholder.webp exists 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.

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.webp if the user wants to change it.
  • Implement logging to track when the app copies the default placeholder.webp to the user’s directory.

aaron-r-campbell avatar Oct 08 '24 11:10 aaron-r-campbell