diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-10-07 09:37:41 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-10-07 09:37:41 -0400 |
commit | 89722ebd6dcdc7067277050a431fbb7b9ea1dcf5 (patch) | |
tree | a23a5029b94e7ddec8d8ecdae0438f353cede71a /dichroism/src/image_api.rs | |
parent | 743ae22168b1fcdf2e1e54bcadbb1bb3fce3370d (diff) | |
download | theglassyladies-89722ebd6dcdc7067277050a431fbb7b9ea1dcf5.tar.xz theglassyladies-89722ebd6dcdc7067277050a431fbb7b9ea1dcf5.zip |
sorted out image repo, error handling
Diffstat (limited to 'dichroism/src/image_api.rs')
-rw-r--r-- | dichroism/src/image_api.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dichroism/src/image_api.rs b/dichroism/src/image_api.rs index 97faead..3eff88e 100644 --- a/dichroism/src/image_api.rs +++ b/dichroism/src/image_api.rs @@ -16,6 +16,10 @@ pub fn generate_images(data: &str) -> Result<()> { let _thumb = img.thumbnail(200, 200); //thumb.save("test_thumbnail.jpg")?; Ok(()) + + // TODO: gather and return related images as a tuple. then in another function, write them + // out to the filesystem and return NewImages using the resulting paths. The pathnames + // *probably* need to be UUIDs. } pub fn extract_data(uri: &str) -> Result<&str> { |