Skip to content

image: basic resizing framework #6755

@matrixik

Description

@matrixik
Feature request.

Requested on golang-nuts:
https://groups.google.com/d/msg/golang-nuts/rL1ATqYBECU/3UYlNCBgEaUJ

By: Alberto García Hierro:

>> There are many different resizing algorithms and approaches. I would
>> imagine that pure Go image resizing can and should be done by a "go
>> get"table third party library. Not everything has to be in the
>> standard library.

I totally agree, resizing algorithms should be pluggable. However, I think the standard
library should provide a basic framework for them, so users could write only the code
for the interpolation.

e.g.

type Interpolator interface... or type Interpolator func... for better performance

func Resize(im Image, width, height int, inter Interpolator) (Image, error)



Best regards,
Dobrosław Żybort

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions