Skip to content

Instantly share code, notes, and snippets.

@plateaukao
Created July 4, 2019 01:35
Show Gist options
  • Save plateaukao/78d05393732c77b5960a05dca58ac1f4 to your computer and use it in GitHub Desktop.
Save plateaukao/78d05393732c77b5960a05dca58ac1f4 to your computer and use it in GitHub Desktop.
calliplus image process flow
@startuml
alt case: no local cache
autonumber "<font color=red><b>[0]"
CalliImage -> http: get (image file)
http --> CalliImage: image file with white background
CalliImage -> ImageProcessing: compute(removeWhiteBackground, bytes)
ImageProcessing --> CalliImage: processed image
CalliImage -> CalliImage: save file to local storage
CalliImage -> CalliImage: in build(), Image.memory(processed image)
else case: local cache exists
CalliImage -> CalliImage: in build(), Image.File(file)
end
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment