mirror of
https://github.com/esimov/caire.git
synced 2025-11-01 12:22:34 +08:00
Remove unneeded vendor dependencies
This commit is contained in:
@@ -78,7 +78,7 @@ func (p *Processor) Resize(img *image.NRGBA) (image.Image, error) {
|
||||
pw := c.Width - int(float64(c.Width)-(float64(p.NewWidth)/100*float64(c.Width)))
|
||||
ph := c.Height - int(float64(c.Height)-(float64(p.NewHeight)/100*float64(c.Height)))
|
||||
if pw > newWidth || ph > newHeight {
|
||||
err := errors.New("the generated image size should be less than original image size.")
|
||||
err := errors.New("The generated image size should be less than original image size.")
|
||||
return nil, err
|
||||
}
|
||||
// Reduce image size horizontally
|
||||
|
||||
Reference in New Issue
Block a user