func (this *QualityProcessor) Process(img *img4g.Image) error { log.WithFields(log.Fields{ "quality": this.Quality, }).Debug("process quality") err := img.SetCompressionQuality(this.Quality) return err }
func (this *QualityProcessor) Process(img *img4g.Image) error { l4g.Debug("process quality") var err error tran := this.Cat.NewTransaction(Image, "Quality") defer func() { tran.SetStatus(err) tran.Complete() }() err = img.SetCompressionQuality(this.Quality) return err }