From 3e536dbae4d1da78d417db130ef7162eb114bb74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20L=C3=A4hdekorpi?= Date: Sat, 27 Oct 2018 21:39:17 +0300 Subject: [PATCH] Make README more readable --- README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 1b7de72..5522d33 100644 --- a/README.rst +++ b/README.rst @@ -24,17 +24,17 @@ Thank you for using piexifjs! How to Use ---------- -- *var exifObj = piexif.load(jpegData)* - Get exif data as *object*. *jpegData* must be a *string* that starts with "\data:image/jpeg;base64,"(DataURL), "\\xff\\xd8", or "Exif". -- *var exifStr = piexif.dump(exifObj)* - Get exif as *string* to insert into JPEG. -- *piexif.insert(exifStr, jpegData)* - Insert exif into JPEG. If *jpegData* is DataURL, returns JPEG as DataURL. Else if *jpegData* is binary as *string*, returns JPEG as binary as *string*. -- *piexif.remove(jpegData)* - Remove exif from JPEG. If *jpegData* is DataURL, returns JPEG as DataURL. Else if *jpegData* is binary as *string*, returns JPEG as binary as *string*. +- :code:`var exifObj = piexif.load(jpegData)` - Get exif data as *object*. *jpegData* must be a *string* that starts with "\data:image/jpeg;base64,"(DataURL), "\\xff\\xd8", or "Exif". +- :code:`var exifStr = piexif.dump(exifObj)` - Get exif as *string* to insert into JPEG. +- :code:`piexif.insert(exifStr, jpegData)` - Insert exif into JPEG. If *jpegData* is DataURL, returns JPEG as DataURL. Else if *jpegData* is binary as *string*, returns JPEG as binary as *string*. +- :code:`piexif.remove(jpegData)` - Remove exif from JPEG. If *jpegData* is DataURL, returns JPEG as DataURL. Else if *jpegData* is binary as *string*, returns JPEG as binary as *string*. Use with File API or Canvas API. Example ------- -:: +.. code:: html