Go Image, Azure SDK for Go.
PS go-first-step> go mod init hosomi/go-first-step
go: creating new go.mod: module hosomi/go-first-step
Halve the original image and output it.
args:
PS go-first-step> go run cmd/halfsize.go material/cat0056-051.jpg out.jpg
Superposition two images.
PS go-first-step> go run cmd/superposition.go
lower image(100x100):
upper image(50x50):
output image(Starting position 25,25):
Upload the files to Azure Storage Blob.
(Uploading files to Azure Blob with Azure SDK for Go)
args:
The container name must be created in go-test before it is run.
PS go-first-step> go run .\cmd\azuresdk_blobupload.go .\material\cat0056-051.jpg
setup:
setx AZURE_STORAGE_ACCOUNT "devstoreaccount1"
setx AZURE_STORAGE_ACCESS_KEY "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
Azure/azure-storage-blob-go: Microsoft Azure Blob Storage Library for Go
Go 開発者向けの Azure | Microsoft Docs
Azure クイック スタート - Go を使用してオブジェクト ストレージに BLOB を作成する | Microsoft Docs
setx | Microsoft Docs
Download the files from Azure Storage Blob.
args:
usage: go run cmd/azuresdk_blobdownload.go —help
Download the JPG file from the Azure Storage Blob and upload it with half the resolution.
args:
usage: go run cmd/azuresdk_and_halfsize.go —help