def save_image(self): filters=[('Images', ['png', 'jpeg', 'jpg'])] f = choose_save_file(self, 'viewer image view save dialog', _('Choose a file to save to'), filters=filters, all_files=False) if f: from calibre.utils.img import save_image save_image(self.current_img.toImage(), f)
def save_image(self): filters=[('Images', ['png', 'jpeg', 'jpg'])] f = choose_save_file(self, 'viewer image view save dialog', _('Choose a file to save to'), filters=filters, all_files=False) if f: from calibre.utils.img import save_image save_image(self.current_img.toImage(), f)