func (this *RotateProcessor) Process(img *img4g.Image) error { l4g.Debug("process rotate ") var err error tran := this.Cat.NewTransaction(Image, "Rotate") defer func() { tran.SetStatus(err) tran.Complete() }() err = img.Rotate(this.Degress) return err }