Recherche avancée

Médias (91)

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (11345)

  • How can I resize an image then centralize it with a white background ? Can it be done using php-Imagine library ?

    6 février 2017, par BOBO

    The effect I would like to generate is exactly like the example in
    this StackOverflow thread : (Related Question)

    1.Resize image
    2.Keep proportion
    3.Add or Fill none-image areas with white background

    Here are three examples of this process below :
    1. If original is square no matter 640*640 or 1024*1024, just resize it to target dimension e.g. 480*480 will work.
    enter image description here

    1. If the original input is vertical rectangular,the output should not be cropped
      and still be centerlized as below (the red dash edge marker is just make it easier to see the background is white and the proportion is kept after image resized to 480*480 px)
      enter image description here

    2. if the original input is horizontal rectangular, output like below, white background, keeps proportion and image uncroped , thus without losing anything after the image processing.
      enter image description here

    So after I’ve clarified such a question,
    I would like to know :

    1. Is there a general name of such Custom Image Resize mentioned above ?
    2. would like to know how to achieve it using php image library Imagine ?
      is it doable using php-imagine, or have to switch to another library, e.g imagemagick ?

    P.S. If you would like to achieve the effect either in image-resizing or video resizing, you can use below FFMPEG single-line command.
    (thanks to @Mulvya, yes below code applies both to videos and image formats)

    [run below built-in code in ffmpeg console to achieve the mentioned resize effect]

    [video resize]

    ffmpeg -i "[raw video url or videofile location.mp4]"  -vf "scale=iw*min(480/iw\,480/ih):ih*min(480/iw\,480/ih),pad=480:480:(480-iw)/2:(480-ih)/2:color=white" [save_path_and_filename].mp4  

    [image resize]

    ffmpeg -i "[raw image url or imagefile location.jpg]"  -vf "scale=iw*min(480/iw\,480/ih):ih*min(480/iw\,480/ih),pad=480:480:(480-iw)/2:(480-ih)/2:color=white" [save_path_and_filename].jpg
  • after scaled transparent video,Video scaled with white background(jpg) [on hold]

    7 mars 2017, par Sohaib Raza

    I am scaled video using ffmpeg. After scaled video the transparent video to the scaled video with white background.
    Using below commend

    ffmpeg -i inputVideo.mp4 -vf scale=100p:100 outputVideo.mp4

    using this commend transparent video convert to the white background video.

  • How to Convert PNG Transparent Background to JPG White Background ?

    28 décembre 2016, par Matt McManis

    I’m converting a PNG to JPG. The transparent background turns black by default. I need it to be white.

    What is the FFmpeg command to set the alpha channel to a color ?

    I think it has something to do with the alphamerge and alphaextract Filters.

    ffmpeg -i image.png -qscale:v 2 image.jpg

    This replaces white with transparency when converting to png :

    -vf chromakey=white