Merge 052092391d
into 332c8db0b3
This commit is contained in:
commit
c8403d4213
@ -30,10 +30,6 @@ func IsImageUrl(url string) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetImageSizeFromUrl(url string) (width int, height int, err error) {
|
func GetImageSizeFromUrl(url string) (width int, height int, err error) {
|
||||||
isImage, err := IsImageUrl(url)
|
|
||||||
if !isImage {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
resp, err := http.Get(url)
|
resp, err := http.Get(url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user