I was wondering how Facebook and Flicker get the image title when you upload it.
There are two things to be noted.
- Image Title (Which we mostly call name)
- Image Description.Title (you can check the picture properties and go to Details, and see Title under description heading, this is implicit and not visible title)
While we upload picture to Facebook
and Flicker
, they extract this information from image, and set as a title.
How can i do that with Python / Django / PIL?
Find this image as an example. Download and check its properties, Details, Description and Title. Try to upload on Facebook
and Flicker
, they extract this info.
EDIT
Here is the image that shows what i am trying. Look The title field has been populated, And facebook is extracting this info, but Not the Python code. When i add Subject too?(that's a field under the title), i was able to get the imageDescripiton. Here are two images.
Second Image.
Image Links
Image One(with title only) and Image Two(with title and Subject)
NOTE:
When i open the file in notepad, i can see the description there..
<dc:description> <rdf:Alt> <rdf:li xml:lang="x-default">heeeeeeeeeeeeeeeee</rdf:li> </rdf:Alt> </dc:description>