skip gif images
This commit is contained in:
parent
2df18b7575
commit
9bfac3a80b
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
|
@ -313,6 +313,10 @@ func main() {
|
|||
pdf := gopdf.GoPdf{}
|
||||
pdf.Start(gopdf.Config{Unit: gopdf.UnitPT, PageSize: *gopdf.PageSizeA4})
|
||||
for idx, imgLink := range episodeBatch.imgLinks {
|
||||
if strings.Contains(imgLink, ".gif") {
|
||||
fmt.Println(fmt.Sprintf("WARNING: skipping gif %s", imgLink))
|
||||
continue
|
||||
}
|
||||
err := addImgToPdf(&pdf, imgLink)
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue