Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (67)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (7690)

  • 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
  • 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
  • Should I use FFmpeg or opencv to convert a video into a black and white by a C program ? [closed]

    9 février 2021, par Meganathan

    I want to convert a colored video clip into a black and white clip by a c program, Which one is best suitable for that purpose, FFMPEG or OPENCV ? I am new to video processing.