Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Clarify or better define bitmap to string and from string encoding #62

Open
daluu opened this issue Dec 31, 2014 · 0 comments
Open

Clarify or better define bitmap to string and from string encoding #62

daluu opened this issue Dec 31, 2014 · 0 comments

Comments

@daluu
Copy link

daluu commented Dec 31, 2014

bmp.to_string() and bitmap.Bitmap.from_string(string)

http://www.autopy.org/documentation/api-reference/bitmap.html
https://github.com/msanders/autopy/#readme

The current documentation/tutorial doesn't make it clear to me. I had assumed the string is base 64. But trying out this tool/library and comparing to other base 64 encoding/decoding utilities output, the string produced by to_string() is not standard base 64 encoding.

I did come across one issue related to base 64 searching this Github project:

#9

Did I find some bug or is the string encoding not base 64 but some related variant? If a variant, why not use standard base 64? It would be nice to interoperate actions performed with AutoPy with other tools/utilties (e.g. decode output from AutoPy bitmap.to_string() elsewhere, encoded string elsewhere to load into AutoPy as bitmap). And if variant, is there a way to convert the to_string() value to standard base 64 and vice versa? So as not to need to do it separately/externally with some Python base 64 module.

FYI, I tested this with a PNG I saved externally with image editing tool that I loaded into AutoPy as well as a saved screenshot captured by AutoPy (saved with PNG extension), both on Windows 7 64-bit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant