Skip to main content

All Questions

Tagged with
-1 votes
1 answer
1k views

PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x11020f880>

I am trying to upload images to s3 via API gateway and sending base64 encoded image's bytes data through API gateway's REST endpoint. Below is the python code that works if i hardcode the bytes data ...
Poonam's user avatar
  • 49
0 votes
1 answer
363 views

django renaming image file while uploading

Im working on a social media application in django and would like to rename all the images from the uploaded content to make it easier to reuse them (putting them in to a pdf is the end goal, right ...
amber's user avatar
  • 27
1 vote
1 answer
367 views

How can I capture a picture from webcam and store it in a ImageField in Django?

I want to take a picture from a webcam and save it in ImageField. I've seen some results related to this question, but I'm not able to understand how they work. For example: How can I capture a ...
Asım Yirmili's user avatar
0 votes
1 answer
794 views

How to set the path of uploaded photos in flask

I am trying to upload an image and run opencv with the received image. It says that the file upload was successful, but I don't know how to set the path to use the uploaded image instead of the ...
김혜진's user avatar
0 votes
2 answers
253 views

Python - tkinter; TypeError: Expected Ptr<cv::UMat> for argument 'src'

I'm trying to build a graphical interface for image processing. I have problem uploading function. When I try to check if the file / image exists and modify it, I get this error and I don't know how ...
AlyAly12's user avatar
0 votes
0 answers
373 views

Flask/Javascript - How to upload multiple files that were input sequentially?

I'm making a basic blogging app in flask, and at the moment I'm trying to add the ability to upload multiple images. I want to allow people to upload images one at a time sequentially, but when a file ...
zogs's user avatar
  • 37
2 votes
1 answer
78 views

Django application: the directory_name to which an image has to be uploaded, should be auto populated

I want to upload images to the django server using my application and the folder/directory_name to which the image has to be uploaded, should be auto populated using the foreignkey relationship that ...
Gautham Kolluru's user avatar
0 votes
1 answer
113 views

Error trying to upload an image using dropbox library in python

Trying to create a program that takes an image from a local path if it exists and uploads it to Dropbox. This is part of the Code: if os.walk(local_file_path): file_path = os.path.join(...
MaxMad's user avatar
  • 5
0 votes
2 answers
3k views

How to upload an image to a folder and pass its path to a view function in django?

I want to upload an image file using an input file tag from a django template. Then i want to do 2 things: 1) First i want to store the uploaded image in a directory in my project. I want to upload ...
Aayush Gupta's user avatar
0 votes
1 answer
140 views

how to save 3 forms of one model in django?

models.py class Campaign(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) # this is many to one relationship, on_deleting user, profile will also be deleted ...
Irfan Harun's user avatar
  • 1,069
1 vote
1 answer
1k views

Django ckeditor image upload - Error 403 when trying to upload images

I've looked through all the questions regarding image upload with django ckeditor but I can't find the solution to my problem. I'm trying to enable image upload for my posts with django ckeditor but ...
Askew's user avatar
  • 101
1 vote
1 answer
183 views

No module named 'config' while uploading image on gcloud -django

I am trying to upload an image to gcloud server through admin area but it shows error No module named 'config' I am using gcloud proxy to use gcloud database here is the error trail- ...
Kartik Gautam's user avatar
0 votes
3 answers
98 views

Unable to display image using django

I am new to using django. In my app, I am uploading images that is being stored to the media folder. Now, I am trying to provide the link for downloading the image which is not working. I also tried ...
Shreya Saha's user avatar
1 vote
2 answers
4k views

Compress and upload image using python-flask

I am using Python-flask application for image processing, however, the image compression is done in JavaScript and then upload is being done in python flask backend, when I try to access the image in ...
Vinayak Mahajan's user avatar
4 votes
1 answer
9k views

Django Upload Image in specific folder without FileField or ImageField and MEDIAROOT

My App needs to upload different profile images in different folders inside the static folder. One more thing, I'm not using models, I just want to take the picture I choose in html input file and ...
Sergio Mendez's user avatar

15 30 50 per page
X