Skip to content

Commit

Permalink
skip gif images
Browse files Browse the repository at this point in the history
  • Loading branch information
robinovitch61 committed Mar 17, 2024
1 parent 2df18b7 commit 9bfac3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 9bfac3a

Please sign in to comment.