Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (96)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (5959)

  • avcodec/parser : reset indexes on realloc failure

    26 septembre 2013, par Michael Niedermayer
    avcodec/parser : reset indexes on realloc failure
    

    Fixes Ticket2982

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/parser.c
  • FFMPEG video combining and resizing issue

    2 janvier 2015, par Mehak Fatima

    I want a FFMPEG Template for Combing Videos. I have already develop a code of combining clips

    ffmpeg -f concat -i C:\vids\ffmpeg\f.txt -c copy C:\vids\ffmpeg\test.mp4

    but I want to resize it as HD (720p). I have searched alot but couldn’t find the solution. Kindly help me.

  • Issue with image using ffmpeg to combining it on PHP

    8 mai 2017, par 7sega7

    I’m trying to combine images with ffmpeg on PHP.

    First, I save the image with this and resizing then :

    $imagen = file_get_contents($_SESSION['img']);
    file_put_contents('img_prod.jpg', $imagen);
    $img = resize_imagejpg('img_prod.jpg', 650,360);
    imagejpeg($img, 'img_prod.jpg');

    Then I create a png with only a title or info. At the moment I’m giving the text with a form, later I’ll do with BD.
    For this I’m using the imagettftext :

    titulo = explode("-", $_SESSION['title']);
    $im = imagecreatetruecolor(400, 30);
    $white= imagecolorallocate($im, 255, 255, 255);
    $black= imagecolorallocate($im, 0, 0, 0);
    imagefilledrectangle($im, 0, 0, 399, 29, $white);
    $font= 'Comfortaa.ttf';
    imagettftext($im, 10, 0, 15, 10, $black, $font, $titulo[$i]);
    imagepng($im, "img_con_texto.png");
    imagedestroy($im);

    What I’m doing here is, first I get the Title for my form, and with the explode, every time I read a "-", I put all the text in another line. I simplified this on the code quote por easy read.
    Then I create the color, I filled the all rectangle with one color, pick the font and put the font, color font and the text on a image and destroy the variable for using again with another text.

    At the end, I use ffmpeg to put the image for "file_get_contents" and the image with the text.

    echo shell_exec('ffmpeg -y -i marco.png -i img_prod.jpg -filter_complex "overlay=20:(main_h-overlay_h)/2" out_img_prod.jpg')

    The "marco.png" it is just a white image with no contents. I open paint, change the resize pixels for 850/480 and saving that as marco.png.

    Then I add the text on the right side with the last image :

    echo shell_exec('ffmpeg -y -i out_img_prod.jpg -i img_con_texto.png -filter_complex "overlay=500:140" prod_title.jpg');

    The issue is that, when I do this, the text have a light gray color on the background. When I create the img with the text, It have white background color and it is a .png So I don’t know why It have that gray background color.
    This is the image from the last code : image with text

    If I did the same with paint or gimp, adding mannualy the text on the image on the left, the background gray color dissapear so, It is possible to quit that light grey color ?

    PD : I quit some code for a simple read, so maybe I miss to quit variables. Also, If the img is more smaller and the text don’t collide with the text, the light gray color still there.