Comments (13)
If someone wants to try in the pre-release demo:
- A picture can be uploaded on the product edit screen
- On the stock overview page there is a new button next to consume which shows the picture of the product (only enabled when the product has a picture)
No demo data so far, I uploaded the picture above for product "Cucumber".
Still needs some polish, that's the first time we handle files, so also security things, file size checks, and so on (please don't overload my demo server :D).
The files are saved in data/storage/productpictures
.
from grocy.
I have a small addition to this. When editing products it would be useful with a small icon that shows if the product actually has a picture or not.
Please have a look at my example.
from grocy.
I'll second this. To have a basic image of the item.
from grocy.
Does not like long file names. Gives you the error of maybe duplicate.
But I don't consider this a bug. Just a thing to note.
Maybe more accurate error messages?
from grocy.
Changes since yesterday:
- Better file name validation
- Finished product edit page (added also possibility to remove a picture)
- On the stock overview page there is no separate button to show the picture, instead a little image icon next to the product name apperas and the whole name cell is clickable to show the picture, if the product has one
- The picture is also shown in the productcard (purchase/consume/etc. pages)
To workaround duplicate file names, just some random characters are prepended to the file name during the upload - I think that should be enough...
Let me know if you find any bugs or have any further/other ideas on this. :)
from grocy.
Put picture and text in the center maybe?
Delete and upload button in view page
from grocy.
Sure ... I'm happy when the rest seems to work... :)
Maybe I'm just a little worried about the (security) of the file upload API...
- Should not be possible to serve file from outside the
data/storage
directory (should already be fine because/
is disallowed in the requested file name) - The file is handled on both server and client side completely in RAM, no chunking or something and also no file size checks (only configured limits from PHP or the webserver will apply)
- => So means is only good for small files as of now, so for product pictures it will be ok I think...
from grocy.
I added a button in the dialog to jump to the product edit screen (and back on saving the product)...
Centering the title I did not get to work...
from grocy.
I can make it center with CSS, but that will effect anything thats using BootBox - modal.
I dont know if theres anything else that uses that?
.modal-title {
margin-left: auto;
}
from grocy.
Thanks, yes that would affect every modal/dialog - I limited it to that one in ae58606.
from grocy.
Something to note about the picture upload feature. It will accept any file. Not sure about the file size, but tried 25mb and that worked fine.
from grocy.
The file API accepts all file types, but preselcting only image files in the file picker is possible - done in f90faca.
from grocy.
Would it be possible to add a gallery view to the stockoverview page?
Something like amazon pages (pictures+name)?
https://www.amazon.de/gcx/Geschenke-fΓΌr-Erwachsene/gfhz/
I am going to install Grocy on a tablet for my grandma and for her reading the individual items will be a challenge. So, it would be very practical to show the items' image rather than their name.
Of course there will be performance challenges and images must be turn into thumbnails before hand.
However, then the results would be a elderly-friendly touch-enabled Grocy :)
from grocy.
Related Issues (20)
- Feature Request: Using Grocy for more than food - Consumable hardware, electronics and tools for projects? HOT 1
- Feature Request: QR Codes and Product Page for individual items HOT 1
- mysql-Database HOT 5
- Feature Request: less mandatory fields for products HOT 1
- Feature Request: API integration for store products etc HOT 1
- Bug: A server error occured while processing your request HOT 1
- Feature Request: Allow "decimal places" settings > 18 HOT 1
- Feature Request: Generate images of generic products via AI, or search them online HOT 1
- Typo: "product specifc QU conversions" HOT 1
- Feature Request / Idea: a tap-to-add dashboard for quickly updating a shopping list HOT 1
- Bug: FontAwesome icons showing rectangle box with X HOT 3
- Feature Request: Assign multiple categories to one task HOT 2
- Bug: Unable to save chores when chores_assignment: false HOT 1
- Bug: Barcode Not Functioning HOT 1
- Feature Request: Ability to schedule chores with cron expression HOT 2
- Feature Request: User groups for chores HOT 3
- Feature Request: Edit dates that get used in calculations HOT 4
- Bug: Shelf Life is calculated incorrectly if items are already purchased expired HOT 2
- Bug: Product editing form quantity units HOT 2
- Feature Request: Support filenames with none English chars HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grocy.