Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (86)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (5745)

  • Image generated by System.Drawing.Image is 10x larger than original file

    13 mai 2021, par Ninbura

    I've written a Powershell script that extracts one frame from a dshow capture device using FFmpeg, and then copies the output image from a file to my clipboard :

    


    $screenshot = [System.Drawing.Image]::FromFile((Get-Item -Path $outputFilePath))
[System.Windows.Forms.Clipboard]::SetImage($screenshot)
$screenshot.Dispose()


    


    The original file is a 1MB JPEG, but the image in my clipboard is an 11MB PNG. When I go to paste this file into something like Discord the file size is too large, unless you have Discord Nitro.

    


    Is there any way to avoid this file size inflation while using [System.Drawing.Image]::FromFile() ?

    


    Here's an easy test template :

    


    Add-Type -AssemblyName System.Drawing
Add-Type -AssemblyName System.Windows.Forms

$screenshot = [System.Drawing.Image]::FromFile((Get-Item -Path "Path to picture"))
[System.Windows.Forms.Clipboard]::SetImage($screenshot)
$screenshot.Dispose()


    


    Edit 2021/05/13 :

    


    Interestingly, it's starting to seem like this is a limitation of copying an image to a clipboard. I decided to dig deeper and see if the image size was increasing when I drew the image with System.Drawing.Image or when I pushed it in my clipboard with System.Windwos.Forms.Clipboard. If I save the image before putting it my clipboard like so, it retains the original file size, even if I change the extension to png :

    


    Add-Type -AssemblyName System.Drawing
Add-Type -AssemblyName System.Windows.Forms

$screenshot = [System.Drawing.Image]::FromFile((Get-Item -Path "C:\Users\gabri\Pictures\FFScreenshots\2021-05-12 19-04-26.845.jpeg"))
$screenshot.Save("C:\Users\gabri\Pictures\FFScreenshots\test.jpeg") # test.png makes no difference
$screenshot.Dispose()


    


    So it would seem that the image grows exponentially in size specifically when I push it to my clipboard. I verified this by simply uploading an image to Discord, copying it to my clipboard (click image > Open original > right click and copy result), and uploading it again. Sure enough, the new image pasted from my clipboard was around 10x the size of the original image (1MB vs 12MB). I wondered if this was a "limitation" of Windows so I ran the same test on Ubuntu 20.04. Uploaded an image to Discord, copied the image to my clipboard, and uploaded it again. Once again the image was about 10x larger, though slightly smaller than then when I uploaded the image from my clipboard on my Windows machine (11.4MB VS 12MB). Just to make sure this wasn't limited to Discord, I ran the same test with Gmail in-browser on both operating systems, same result.

    


    Alas, there appears to be something happening when you copy an image to a clipboard that drastically increases file size. One thing's for sure, whatever's happening is definitely over my head.

    


  • Nomenclature #4626 : Renommer le menu "Squelettes"

    30 avril 2021, par RastaPopoulos ♥

    Absolument aucune utilisateurice finale des sites que je fais, ne sait ce qu’est un template quel qu’il soit, donc encore moins un squelettes. Ce sont juste des personnes qui utilisent l’interface pour rédiger, valider des contenus, et configurer des fonctionnalités de leur site (surtout d’affichage).

    La personne veut :
    - configurer l’apparence de la box dans son site => aucun besoin de savoir ce qu’est un squelette/template
    - configurer des menus => aucun besoin non plus
    - configurer la taille et le comportement (lazyload ou pas etc) des images adaptives => aucun besoin non plus
    - configurer les noisettes du site, pour dire quoi afficher sur chaque page => aucun besoin non plus
    - etc etc

    Pour 99% des fonctionnalités qui sont insérées dans ce menu, les gens n’ont donc absolument pas à savoir ce qu’est le terme "squelettes", et on n’a pas à leur expliquer, ça n’a aucun rapport avec leur quotidien et avec cette liste de fonctionnalités. Elles peuvent parfaitement configurer tout ça sans jamais avoir entendu ce terme (et sans même savoir quel logiciel elles sont en train d’utiliser !).

    Avoir des client⋅es/utilisateurices finales qui savent ce qu’est un template et/ou un squelettes SPIP, c’est une infime infime minorité des cas. Les gens qui l’utilisent à la toute fin n’ont pas à savoir ça à priori. Tant mieux si elles connaissent par ailleurs, mais c’est complètement annexe, ça ne doit pas être un pré-requis du tout pour comprendre et utiliser ce menu.

    Ça me fait d’ailleurs très penser à un sketch de "La stratégie de l’échec", où il faut apprendre à mal ranger : "Je classe les factures débiteurs dans le dossier Antilope". Ya un mot inconnu de la plupart des users, qui ne correspond à rien pour elleux, et on leur demande se souvenir que tel config est dedans, juste par mémoire, et non parce que c’est compréhensible en soi.

    Que ce soit pour "Mise en page" ou pour "Présentation", les propositions ne sortent pas de nulle part mais ont une argumentation :
    1) doit avoir un rapport avec la liste des plugins qui ajoutent des choses dans ce menu actuellement
    2) suivant les comparaisons avec les autres CMS du même genre

    C’est suivant ces deux points qu’il faut trouver un terme regroupant le maximum (ça ne collera jamais à 100%). Mais clairement suivant ce "cahier des charges" très basique : le mot "squelettes" n’a aucun rapport.

  • Generate a .JSON file in After Effects or Premiere ?

    9 avril 2021, par Ryan

    I am working on a video template app where users can pick a video template and add their images as background layer and render a .mp4 video.

    


    Each template which I upload to the server is a Zip file which consists of 4 elements
1 : Background Video
2 : Source Images
3 : Output Video
4 : .JSON file

    


    I am a motion designer and not good with code, however when I check the .JSON file, I can tell that its holding some sort of animation data, I can see the text pointing towards the source images and the background video and a bunch of other text data which I think is basically animating the source images.

    


    Now being a motion designer, I can make some really nice animation overlays and simply replace it with the BACKGROUND VIDEO element and yes it works. And I can make as many animation templates I want using this one .JSON file.

    


    However (This is where the limitation starts), even though I can have really exciting overlay animations, the base source images are just 3 images fading in and out, and this data is coming from the .JSON file.

    


    What would be really nice, is if I could some how create/generate my own .JSON files, this way I can have the source images animate however I like (Position, Scale, Rotate) but I have no clue how this .JSON can be generated.

    


    This link has the main files which make up one template. You can check the .JSON file and how it works with other elements.
One Template Files