@@ -66,7 +66,7 @@ func (h *Handlers) HandlePNG(w http.ResponseWriter, r *http.Request) {
6666 return
6767 }
6868
69- pngBytes , err := render .RenderPNG (result .GLBBytes , result .Atlas , req .Rotation , req .Background , req .Width , req .Height )
69+ pngBytes , err := render .RenderPNG (result .GLBBytes , result .Atlas , req .Rotation , req .Background , req .Width , req .Height , true )
7070 if err != nil {
7171 writeError (w , http .StatusInternalServerError , "render failed: " + err .Error ())
7272 return
@@ -103,7 +103,7 @@ func (h *Handlers) HandleGIF(w http.ResponseWriter, r *http.Request) {
103103 return
104104 }
105105
106- gifBytes , err := render .RenderGIF (result .GLBBytes , result .Atlas , req .Background , req .Frames , req .Width , req .Height , req .Delay , * req .Dithering )
106+ gifBytes , err := render .RenderGIF (result .GLBBytes , result .Atlas , req .Background , req .Frames , req .Width , req .Height , req .Delay , * req .Dithering , * req . AutoZoom )
107107 if err != nil {
108108 writeError (w , http .StatusInternalServerError , "render failed: " + err .Error ())
109109 return
@@ -140,7 +140,7 @@ func (h *Handlers) HandleMP4(w http.ResponseWriter, r *http.Request) {
140140 return
141141 }
142142
143- mp4Bytes , err := render .RenderMP4 (result .GLBBytes , result .Atlas , req .Background , req .Frames , req .Width , req .Height , req .FPS )
143+ mp4Bytes , err := render .RenderMP4 (result .GLBBytes , result .Atlas , req .Background , req .Frames , req .Width , req .Height , req .FPS , * req . AutoZoom )
144144 if err != nil {
145145 writeError (w , http .StatusInternalServerError , "render failed: " + err .Error ())
146146 return
0 commit comments