예제 #1
0
 def exportVideo(self, path, delay_millis, export_gif,export_video=False,clear_frames=False):
     """export 'video' - currently choice between image sequence or animated gif"""
     if clear_frames:
         animate.clear_frames(path)
     self.exportFramesAtPath(path)
     # create gif
     if export_gif:
         self.showMessage("Creating animated gif at {}".format(self.saveAnimationPath))
         animate.make_animation(path, delay_millis)
     if export_video:
         self.showMessage("Creating video at {}".format(self.saveAnimationPath))
         animate.make_video(path, self.exportNameDigits)
 def exportVideo(self, path, delay_millis, export_gif,export_video=False,clear_frames=False):
     """export 'video' - currently choice between image sequence or animated gif"""
     if clear_frames:
         animate.clear_frames(path)
         animate.clear_frames(path, '*PNGw')
     self.exportFramesAtPath(path)
     # create gif
     if export_gif:
         self.showMessage("Creating animated gif at {}".format(self.saveAnimationPath))
         animate.make_animation(path, delay_millis)
     if export_video:
         self.showMessage("Creating video at {}".format(self.saveAnimationPath))
         animate.make_video(path, self.exportNameDigits)
예제 #3
0
 def exportVideo(self,
                 path,
                 delay_millis,
                 exportGif,
                 exportVideo=False,
                 clearFrames=False):
     """Export video frames and optionally creates an animated gif or video from them"""
     if clearFrames:
         animate.clear_frames(path)
         animate.clear_frames(path, '*PNGw')
         animate.clear_frames(path,
                              '*pgw')  # from 2.18, QGIS creates .pgw files
     self.exportFramesAtPath(path)
     if exportGif:
         self.showMessage("Creating animated gif at {}".format(
             self.saveAnimationPath))
         animate.make_animation(path, delay_millis)
     if exportVideo:
         self.showMessage("Creating video at {}".format(
             self.saveAnimationPath))
         animate.make_video(path, self.exportNameDigits)