This commit is contained in:
Qiying Wang 2024-05-28 01:33:43 +08:00 committed by GitHub
commit c8403d4213
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,10 +30,6 @@ func IsImageUrl(url string) (bool, error) {
}
func GetImageSizeFromUrl(url string) (width int, height int, err error) {
isImage, err := IsImageUrl(url)
if !isImage {
return
}
resp, err := http.Get(url)
if err != nil {
return