Dialog box for saving PNG file?

You think you have found a bug ? You've got a suggestion to modify PhotoFiltre ? /
Ĉu vi opinias vi trovis malbonadĵon ? Ĉu vi havas sugeston por modifi PhotoFiltre ?

Modérateur : Modérateurs

JaggerLegend

Dialog box for saving PNG file?

Message par JaggerLegend »

Everytime i save a PNG image i see a dialog box about interlaced and filter type.
I would like not to see this dialog box everytime i save a PNG image.
The setting could be in Prefereces like "JPEG compression".
Dernière modification par JaggerLegend le 23 mai 2021 9:56, modifié 1 fois.
Antonio
Administrateur(trice)|Administrateur|Administratrice
Administrateur(trice)|Administrateur|Administratrice
Messages : 12731
Inscription : 28 oct. 2003 22:49
Contact :

Re: Dialog box for saving PNG file?

Message par Antonio »

what is your PhotoFiltre version ?
DrPsyche
Nouveau(elle)|Nouveau|Nouvelle
Nouveau(elle)|Nouveau|Nouvelle
Messages : 3
Inscription : 11 déc. 2018 10:34

Re: Dialog box for saving PNG file?

Message par DrPsyche »

Hi,
I've been always using the defaut value. So this dialog box isn't crucial.
Antonio
Administrateur(trice)|Administrateur|Administratrice
Administrateur(trice)|Administrateur|Administratrice
Messages : 12731
Inscription : 28 oct. 2003 22:49
Contact :

Re: Dialog box for saving PNG file?

Message par Antonio »

with the v11 you can use default values
leoa69
Nouveau(elle)|Nouveau|Nouvelle
Nouveau(elle)|Nouveau|Nouvelle
Messages : 1
Inscription : 20 juil. 2023 9:46
Version de PhotoFiltre : 10.12+
Système d'exploitation : Windows 10
Processeur : I3
Mémoire RAM : 8 GB
Contact :

Re: Dialog box for saving PNG file?

Message par leoa69 »

Creating a dialog box for saving a PNG file typically involves using a programming language or framework that allows you to interact with the operating system's file system. Below is an example of how you can create a simple dialog box for saving a PNG file using the Python programming language and the Tkinter library:

python

import tkinter as tk
from tkinter import filedialog

def save_png_file():
file_path = filedialog.asksaveasfilename(
defaultextension=".png",
filetypes=[("PNG files", "*.png"), ("All files", "*.*")]
)
if file_path:
# In real-world applications, you would save the PNG file here
print(f"File saved: {file_path}")

# Create the main application window
root = tk.Tk()
root.title("Save PNG File Dialog")

# Create a button to trigger the save dialog
save_button = tk.Button(root, text="Save PNG File", command=save_png_file)
save_button.pack(pady=20)

# Run the Tkinter event loop
root.mainloop()

When you run this Python script, it will open a simple graphical window with a button labeled "Save PNG File." Clicking the button will display a dialog box where you can specify the filename and location to save the PNG file. The asksaveasfilename function from the filedialog module allows you to customize the dialog and specify the default extension and file types.

Keep in mind that this is a basic example, and in a real-world application, you would need to handle file-saving logic appropriately, such as checking if the file already exists and handling errors. Additionally, the code provided here assumes you have Python and Tkinter installed on your system.
Répondre