Versions in this module Expand all Collapse all v0 v0.2.0 Dec 31, 2024 Changes in this version + const TempTemplate + var DecodableImageTypes = map[string]bool + var EncodableImageTypes = map[string]bool + var MagickExe = sync.OnceValue(func() string { ... }) + var NRGBModel color.Model = color.ModelFunc(nrgbModel) + var NumberToDiacritic = [297]rune + func CalcMinimumGIFGap(gaps []int) int + func ConvertEntryPoint(root *cli.Command) + func CreateTemp() (*os.File, error) + func CreateTempInRAM() (*os.File, error) + func Encode(output io.Writer, img image.Image, format_mime string) (err error) + func FitImage(width, height, pwidth, pheight int) (final_width int, final_height int) + func IsOpaque(img image.Image) bool + func MakeTempDir(template string) (ans string, err error) + func RunMagick(path string, cmd []string) ([]byte, error) + func SetGIFFrameDisposal(number, anchor_frame int, disposal byte) (int, int) + type Context struct + func (self *Context) FlipPixelsH(bytes_per_pixel, width, height int, pix []uint8) + func (self *Context) FlipPixelsV(bytes_per_pixel, width, height int, pix []uint8) + func (self *Context) NumberOfThreads() int + func (self *Context) Parallel(start, stop int, fn func(<-chan int)) + func (self *Context) Paste(background image.Image, img image.Image, pos image.Point, opaque_bg *NRGBColor) + func (self *Context) PasteCenter(background image.Image, img image.Image, opaque_bg *NRGBColor) + func (self *Context) SetNumberOfThreads(n int) + type IdentifyOutput struct + Canvas string + Dispose string + Dpi string + Fmt string + Gap string + Index string + Orientation string + Size string + Transparency string + type IdentifyRecord struct + Canvas struct{ ... } + Dimensions_swapped bool + Disposal int + Dpi struct{ ... } + Fmt_uppercase string + Gap int + Height int + Index int + Is_opaque bool + Needs_blend bool + Width int + func IdentifyWithMagick(path string) (ans []IdentifyRecord, err error) + type ImageData struct + Format_uppercase string + Frames []*ImageFrame + Height int + Width int + func OpenImageFromPath(path string) (ans *ImageData, err error) + func OpenImageFromPathWithMagick(path string) (ans *ImageData, err error) + func OpenNativeImageFromReader(f io.ReadSeeker) (ans *ImageData, err error) + func (self *ImageData) Resize(x_frac, y_frac float64) *ImageData + type ImageFrame struct + Compose_onto int + Delay_ms int32 + Height int + Img image.Image + Is_opaque bool + Left int + Number int + Top int + Width int + func RenderWithMagick(path string, ro *RenderOptions, frames []IdentifyRecord) (ans []*ImageFrame, fmap map[int]string, err error) + func (self *ImageFrame) Data() (ans []byte) + func (self *ImageFrame) DataAsSHM(pattern string) (ans shm.MMap, err error) + func (self *ImageFrame) Resize(x_frac, y_frac float64) *ImageFrame + type NRGB struct + Pix []uint8 + Rect image.Rectangle + Stride int + func NewNRGB(r image.Rectangle) *NRGB + func (p *NRGB) At(x, y int) color.Color + func (p *NRGB) Bounds() image.Rectangle + func (p *NRGB) ColorModel() color.Model + func (p *NRGB) NRGBAt(x, y int) NRGBColor + func (p *NRGB) Opaque() bool + func (p *NRGB) PixOffset(x, y int) int + func (p *NRGB) Set(x, y int, c color.Color) + func (p *NRGB) SetNRGBA(x, y int, c color.NRGBA) + func (p *NRGB) SetRGBA64(x, y int, c color.RGBA64) + func (p *NRGB) SubImage(r image.Rectangle) image.Image + type NRGBColor struct + B uint8 + G uint8 + R uint8 + func (c NRGBColor) AsSharp() string + func (c NRGBColor) RGBA() (r, g, b, a uint32) + type RenderOptions struct + Flip bool + Flop bool + OnlyFirstFrame bool + RemoveAlpha *NRGBColor + ResizeTo image.Point + TempfilenameTemplate string + type Scanner interface