LaTonia-Mertica / inheritance-artifacts

CU 'JTC' WOW Project Beyond MVP Accessible at Repo 'Inheritance'
MIT License
0 stars 0 forks source link

added new upload image to front of gallery, added utils.py for filters #33

Closed jasondoze closed 2 years ago

jasondoze commented 2 years ago

This code runs on python version 3.9.7 using open cv and no need for ajax or Javascript for now. The models now have an uploaded_at and created_at field. As of now, we have one filter that is running every time an image is uploaded, it's the invert filter. We can add other filters into the code with buttons on edit artifact page or anywhere we choose. Some of the code can change as needed but for now its an example of how the uploaded image gets converted though a filter on the utils.py page using open cv. The filter is hardcoded in for now and can be changed using the uppercase filter name on utils.py. Also, last uploaded image is now sent to the beginning of the gallery page now instead of the end.

Requirements after changing python version... pip install django python3 manage.py makemigrations, migrate pip3 install Pillow pip3 install Numpy pip3 install opencv-python-headless

...going for hours on this one but made some progress!