tis-photofiltre

7.2.1-18
PhotoFiltre est un logiciel de retouche d'image créé par Antonio Da Cruz. Outre les traitements classiques de l'image, il dispose d'une centaine de filtres pour améliorer et transformer des photos numériques.
3644 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-photofiltre icon
  • package : tis-photofiltre
  • name : PhotoFiltre
  • version : 7.2.1-18
  • categories : Media,Utilities
  • maintainer : WAPT Team,Tranquil IT,Simon Fonteneau,Pierre Cosson
  • editor : Antonio Da Cruz
  • licence : Gratuiciel
  • locale : all
  • target_os : windows
  • impacted_process :
  • architecture : all
  • signature_date : 2024-12-03 10:06
  • size : 5.69 Mo
  • homepage : http://www.photofiltre-studio.com/
package           : tis-photofiltre
version           : 7.2.1-18
architecture      : all
section           : base
priority          : optional
name              : PhotoFiltre
categories        : Media,Utilities
maintainer        : WAPT Team,Tranquil IT,Simon Fonteneau,Pierre Cosson
description       : PhotoFiltre is an image editing program created by Antonio Da Cruz. In addition to the classic image treatments, it has a hundred filters to improve and transform digital photos.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : http://www.photofiltre-studio.com/download.htm
installed_size    : 
impacted_process  : 
description_fr    : PhotoFiltre est un logiciel de retouche d'image créé par Antonio Da Cruz. Outre les traitements classiques de l'image, il dispose d'une centaine de filtres pour améliorer et transformer des photos numériques.
description_pl    : PhotoFiltre to program do edycji obrazów stworzony przez Antonio Da Cruz. Oprócz klasycznych zabiegów na obrazie, posiada sto filtrów do poprawy i przekształcania zdjęć cyfrowych
description_de    : PhotoFiltre ist ein von Antonio Da Cruz entwickeltes Bildbearbeitungsprogramm. Zusätzlich zu den klassischen Bildbearbeitungen verfügt es über hundert Filter, um digitale Fotos zu verbessern und zu transformieren
description_es    : PhotoFiltre es un programa de edición de imágenes creado por Antonio Da Cruz. Además de los clásicos tratamientos de imagen, dispone de un centenar de filtros para mejorar y transformar las fotos digitales
description_pt    : PhotoFiltre é um programa de edição de imagem criado por Antonio Da Cruz. Para além dos tratamentos de imagem clássicos, tem uma centena de filtros para melhorar e transformar fotografias digitais
description_it    : PhotoFiltre è un programma di editing di immagini creato da Antonio Da Cruz. Oltre ai classici trattamenti delle immagini, dispone di un centinaio di filtri per migliorare e trasformare le foto digitali
description_nl    : PhotoFiltre is een beeldbewerkingsprogramma gemaakt door Antonio Da Cruz. Naast de klassieke beeldbewerkingen heeft het een honderdtal filters om digitale foto's te verbeteren en te transformeren
description_ru    : PhotoFiltre - это программа для редактирования изображений, созданная Антонио Да Крузом. Помимо классических методов обработки изображений, в ней есть сотня фильтров для улучшения и преобразования цифровых фотографий
audit_schedule    : 
editor            : Antonio Da Cruz
keywords          : 
licence           : Gratuiciel
homepage          : http://www.photofiltre-studio.com/
package_uuid      : 3b2a8936-45d7-42ef-88d3-5e1373d11c7f
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 17ec5b5dc12aa135aeab5c84f12452b759e96d6271b45a07ced872085dddc52b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-03T10:06:57.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : M7olIfA0h3Ivtahy6BwwII5Y7JpQUFfvNKSKiUf9Be+SJz8w1BMkRCDcyxIwBKI4Mdp4q+vJ8O7ljYiEliDFgdBwtdxpk327+1pdbPRSMZGDa50cDGhuy2VDidkDLUfzF3zjxA2dVURmvW8f7aYFcKVsPp1MAvQ7zCx/iS8wpJxVwDEkbYkY+J+p1eO0kdLv0zwuYIApFPoL5Mw+M43PUM47++hQsdty8uQ0V0DPOiB52JRDWDN7d0kZ8Je6s6zfWjhPZkTOzr8ilH1GboeeQgrxm8VBkft+NNxE/gJa2ljpaQtbAabeS0U/ei+OyNk/tKVcgxD1sHTPDS2O/6pgrw==
# -*- coding: utf-8 -*-
from setuphelpers import *

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_name_sub = "pf7"
app_uninstallkey = "Photofiltre7"
app_dir = makepath(programfiles32, app_uninstallkey)
app_bin_path = makepath(app_dir, "PhotoFiltre7.exe")

list_locales = {"de", "en", "es", "it", "nl", "pt", "pl", "ru"}

def install():

    # Declaring local variables
    package_version = control.get_software_version()
    impacted_process_list = control.impacted_process.split(",")
    bin_name = glob.glob("*%s*.zip" % bin_name_sub)[0]
    app_name = control.name
    non_portable_uninstall = makepath(programfiles32, "PhotoFiltre 7", "Uninst.exe")
    # uninstalling non portable version :

    if isfile(non_portable_uninstall):
        run('"%s" /S' % non_portable_uninstall)
        unregister_uninstall("PhotoFiltre")
        remove_programs_menu_shortcut("PhotoFiltre 7", folder="PhotoFiltre 7")

    # Getting installed software version
    if isfile(app_bin_path):
        installed_version = get_version_from_binary(app_name)
    else:
        installed_version = ""

    # Installing the software
    print("Installing: %s" % app_name)
    if installed_version < package_version:
        killalltasks(impacted_process_list)
        if isdir(app_dir):
            remove_tree(app_dir)
        mkdirs(app_dir)
        print("Extracting: %s to: %s " % (bin_name, app_dir))
        unzip(bin_name, programfiles32)
##        temp_dir = "PhotoFiltre7"
##        for file_to_move in glob.glob("%s/*" % temp_dir):
##            shutil.move(file_to_move, app_dir)

        #Install different language pack if not FR
        locales = get_language()

        if locales != "fr" and locales in list_locales:
            langpack = "Studio" + locales.upper() + ".plg"
            shutil.copy2(makepath(basedir,"LanguagePack",langpack),app_dir)
        elif locales != "fr" and locales not in list_locales:
            print("Setting default English language")
            langpack = "StudioEN.plg"
            shutil.copy2(makepath(basedir,"LanguagePack",langpack),app_dir)

        create_programs_menu_shortcut(app_name, app_bin_path)
##        run(f'icacls "{app_dir}" /grant *S-1-5-32-545:(OI)(CI)(RX) /T')

        # Adding the software to the "list-registry"
        register_windows_uninstall(control)  # control is a PackageEntry object corresponding to the package
    else:
        print("%s portable is already installed in the correct version" % app_name)


def uninstall():
    # Declaring local variables
    impacted_process_list = control.version.split(",")

    # Uninstalling the software
    print("Uninstalling: %s" % app_uninstallkey)
    killalltasks(impacted_process_list)
    if isdir(app_dir):
        remove_tree(app_dir)
    unregister_uninstall("PhotoFiltre")
    remove_programs_menu_shortcut("PhotoFiltre")


def audit():
    # Declaring local variables
    package_version = control.version.split("-")[0]
    app_version = get_version_from_binary(app_bin_path, property_name="FileVersion").rsplit(".",1)[0]

    if isdir(app_dir):
        if package_version == app_version:
            print("OK: Folder exists: %s" % app_dir)
            return "OK"
        else:
            print("WARNING app version %s != %s package_version" % (app_version, package_version))
            return "WARNING"
    else:
        print("ERROR: Folder not exists: %s" % app_dir)
        return "ERROR"

# -*- coding: utf-8 -*-
from setuphelpers import *
import bs4 as BeautifulSoup

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_name_sub = "pf7"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = "http://www.photofiltre-studio.com/pf7.htm"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", proxies=proxies, timeout=10):
        if bin_name_sub in bs_search["href"]:
            version = bs_search["href"].split("/")[-1].split("-")[-1].replace(".zip", "")
            latest_bin = bs_search["href"].split("/")[-1]
            download_url = url.rsplit("/",1)[0] + "/" + bs_search["href"]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if isfile(latest_bin):
        remove_file(latest_bin)

    print("Downloading: %s" % latest_bin)
    wget(download_url, latest_bin, proxies=proxies)
    # Checking version from file
    unzip(latest_bin)
    dir_names = glob.glob("pf7*")
    for folder in dir_names:
        if ".zip" not in folder:
            version_from_file = get_version_from_binary(makepath(folder, "Photofiltre7", "PhotoFiltre7.exe"), property_name="FileVersion")

    # if not version_from_file.startswith(version) and version_from_file != '':
    if Version(version_from_file) != Version(version) and version_from_file != "":
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))

    remove_tree(latest_bin.split(".zip")[0])
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return result
e219a6f46440a2fc705797bd8b17d5b5cf6af1760726152cf200cd0ced0141a0 : .env
223b6f81ed2fb04f2a49b57edd5f4758528d731d4877d73a913b4b50717892ed : .vscode/launch.json
1cb4a748704e26a3da84d93676f59891ca19ba13de21f93e8c542216cae93ef8 : .vscode/settings.json
ef13a86d4033802d0d8903590203653ac06d9854176e2bb5acdad59a6f3d548d : LanguagePack/StudioDE.plg
f9c0c19aa0ac2e8004e1014499ecd2930ca054a7525d75e24788b660776335bc : LanguagePack/StudioEN.plg
6aeb3805498e3fda76a14abe28ce1540fcf48bb6cb91f687d0930c3353822f5b : LanguagePack/StudioES.plg
b6f65c3b193afd26d84470db1bdac3f489b5fccfb62f05881ee6fef49d662dee : LanguagePack/StudioIT.plg
f37e8fecda526623a497298035e2ceb6dfe8b55add347fff7ae0a32e170d7da3 : LanguagePack/StudioNL.plg
085afd37ff64e43790513222e9628ee5eb936eb2e0fc1a4595c31ac3d5bbb627 : LanguagePack/StudioPL.plg
d883abf3dc3a021d72f2d5971ce64ceacc9d77c61599455321d49389e2952262 : LanguagePack/StudioPT.plg
c91f18704bc9d8e317b6c0366f82a58ab1199427251217ad7871e8695c3818f8 : LanguagePack/StudioRU.plg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
6256725f555bfc85672a95d547f6920534c6e72871d89af4e04ccbcd01bcaab1 : WAPT/control
17ec5b5dc12aa135aeab5c84f12452b759e96d6271b45a07ced872085dddc52b : WAPT/icon.png
e143a00662731c3aaaf1fbf9d63cc6c55d6bc9a20769aff83c62734dfd1a1477 : WAPT/wapt.psproj
58570c646bc22dfcf2a38e0ce3feaa0b815e34753ae4b12c7309771f8cff4781 : luti.json
d1657658cdae05e62d691d18a7400e76709372964437f8ca35d91a7a590b7d95 : pf7-fr-7.2.1.zip
09b416c62456fbc27033671fc10bbc4508f0fcd2c962eadde3206e72196c0b41 : setup.py
2d1dd3dde45e5571fc6362fa55e49792b4d81705bedbd3787db2b36a7dc0598b : update_package.py