Can anybody help me.I doing a code using PIL package in python,but I don't know to to insert image in that,I use only android. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can anybody help me.I doing a code using PIL package in python,but I don't know to to insert image in that,I use only android.

Help me in adding images in PIL package but with the help of Android mobile not pc

6th Jul 2021, 10:49 AM
ᎷᏒ.ፈᎧᎴᏋᏒ
ᎷᏒ.ፈᎧᎴᏋᏒ - avatar
13 Answers
+ 4
If you are using sololearn playground you will not be able to use those libs, use a pc, install the modules, read their documentation and enjoy! 💐
6th Jul 2021, 10:57 AM
Anshuman Singh
Anshuman Singh - avatar
+ 4
Thnks Abhay
6th Jul 2021, 3:22 PM
ᎷᏒ.ፈᎧᎴᏋᏒ
ᎷᏒ.ፈᎧᎴᏋᏒ - avatar
+ 3
I think you have to use DCoder or spck editor
6th Jul 2021, 11:00 AM
Ayush
Ayush - avatar
+ 3
Yes bro I tried but it shows me error
6th Jul 2021, 11:02 AM
ᎷᏒ.ፈᎧᎴᏋᏒ
ᎷᏒ.ፈᎧᎴᏋᏒ - avatar
+ 3
Put you image in same folder where u have created your project then try
6th Jul 2021, 11:03 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Give a proper path of your image click on image go on properties and copy path
6th Jul 2021, 11:00 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Wait bro I show my code
6th Jul 2021, 11:04 AM
ᎷᏒ.ፈᎧᎴᏋᏒ
ᎷᏒ.ፈᎧᎴᏋᏒ - avatar
+ 2
Check the following code for displaying images in pydroiid app , here i am using matplotlib library to show the image , pil for manipulating it. import matplotlib.pyplot as plt from PIL import Image #/storage/emulated/0/ is path to internal storage img=Image.open('/storage/emulated/0/Download/image_name.jpg') fig=plt.figure() fig.add_subplot(4,1,1) plt.imshow(img) img=img.rotate(180) fig.add_subplot(4,1,2) plt.imshow(img) mg=img.rotate(90) fig.add_subplot(4,1,3) plt.imshow(img) plt.show()
6th Jul 2021, 1:01 PM
Abhay
Abhay - avatar
+ 2
༺ŦAⲘIL CO𝓓ER༻ because i couldn't find another way to display it in pydroiid ,though there are other ways to display it using different libraries that you can google about .
6th Jul 2021, 3:21 PM
Abhay
Abhay - avatar
+ 1
Bro may I know why ur using matplotlib package bro
6th Jul 2021, 1:13 PM
ᎷᏒ.ፈᎧᎴᏋᏒ
ᎷᏒ.ፈᎧᎴᏋᏒ - avatar
+ 1
༺ŦAⲘIL CO𝓓ER༻ u need to change in path replace / with \\ may be it will work
6th Jul 2021, 3:56 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Thnks for ur information A.S
6th Jul 2021, 3:57 PM
ᎷᏒ.ፈᎧᎴᏋᏒ
ᎷᏒ.ፈᎧᎴᏋᏒ - avatar
- 1
What is php file handling?
8th Jul 2021, 9:54 AM
Shubham Bhatia
Shubham Bhatia - avatar