github.com/rselph/thumbler v0.0.0-20260715052042-7676ed54bf5d
Go imports JPEG image decoderCreates a directory tree with Go os.MkdirAll
SHA-2560f29613c809371773e04b33f390a1b15f64de3bf7f294cde2a3354304ad0f201
MaleculeH₂(Db₂F)
Evidence
⋯4 lines
7 "image/draw"
8 _ "image/gif"
9 "image/jpeg"
10 "image/png"
11 "log"
⋯9 lines
36:36… "output directory")
37 flag.Parse()
38
39 if outDir != "" {
40 err := os.MkdirAll(outDir, 0777)
41 if err != nil {
42 log.Fatal(outDir, err)
⋯13 lines
⋯8 lines
77 defer file.Close()
78
79 original, _, err := image.Decode(file)
80 if err != nil {
81 log.Println(filepath.Base(fname), err)
⋯6 lines
⋯9 lines
120
121 if doPng {
122 png.Encode(outFile, thumb)
123 } else {
124 jpeg.Encode(outFile, thumb, &jpeg.Options{Quality: 80})
⋯6 lines
5:33… ee of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without r …
No evidence locations were recorded for this file. Raw result