Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (53)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (2712)

  • Typesetting

    9 juin 2010, par Mikko Koppanen — Imagick, PHP stuff

    Ever had the situation where you have a piece of string which you need to overlay on an image ? Maybe a situation where the area reserved for the string is known in pixels but you need to know the font size to fill most of the area ? Think no more !

    Here is a small example of how to fit a certain piece of a string on to an area of which you know the width and the height or only the width. The magic happens through the ImageMagick CAPTION : format. You can see from the example images how the parameters actually affect the image.

    1. < ?php
    2.  
    3. /* How wide is our image */
    4. $image_width = 200 ;
    5.  
    6. /* Give zero for autocalculating the height */
    7. $image_height = 200 ;
    8.  
    9. /* Specify the text */
    10. $text = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    11.     Mauris lectus mi, mattis non, euismod vel, sagittis nec, ipsum." ;
    12.  
    13. /* Instanciate imagick */
    14. $im = new Imagick() ;
    15.  
    16. /* Create new image using caption : pseudo format */
    17. $im->newPseudoImage( $image_width, $image_height, "caption :" . $text ) ;
    18.  
    19. /* Put 1px border around the image */
    20. $im->borderImage( ’black’, 1, 1 ) ;
    21.  
    22. /* PNG format */
    23. $im->setImageFormat( "png")  ;
    24.  
    25. /* Output */
    26. header( "Content-Type : image/png" ) ;
    27. echo $im ;
    28.  
    29.  ?>

    Here is image with width 100 and height 0 :

    width_100_height_0.png

    Width 100 Height 50 :

    width_100_height_50.png

    Width 200 Height 200 (as you can see the font size is now larger) :

    width_200_height_200.png

  • FFmpeg compile for Android (configure, make)

    11 août 2013, par manutd

    I want to compile ffmpeg for Android ver.
    But everytime I try, I can't compile the source of ffmpeg.
    I think my configuration option may be invalid.

    I used this script for configure.

    #!/bin/sh
    NDK_PATH=$HOME/android-ndk-r8
    PREBUILT=$NDK_PATH/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86

    LDFLAGS="-Wl,-T,$PREBUILT/armelf_linux_eabi.x -Wl,-rpath-link=$NDK_PATH/platforms/android-8/arch-arm/usr/lib \
        -L$NDK_PATH/platforms/android-8/arch-arm/usr/lib -nostdlib $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/crtbegin.o \
        $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/crtend.o -lc -lm -ldl"
    COMMON_CONFIG="\
             ./configure --target-os=linux \
             --arch=arm \
             --enable-cross-compile \
             --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
             --as=$PREBUILT/bin/arm-linux-androideabi-gcc \
             --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
             --sysinclude=$NDK_PATH/platforms/android-8/arch-arm/usr/include \
             --nm=$PREBUILT/bin/arm-linux-androideabi-nm \
             --extra-ldflags=\"$LDFLAGS\" \
             --extra-cflags=-I$NDK_PATH/platforms/android-8/arch-arm/usr/include \

    eval "$COMMON_CONFIG"
    if [ $? -ne 0 ]; then
     exit 1
    fi

    I have to give compiler a new header file path (by —extra-cflags) because when I typed 'make', compiler didn't know where are header files (like math.h, ctime.h)

    After configure using this scripts and type 'make', I got these error.

    CC  libavdevice/alldevices.o
    In file included from /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/stdlib.h:42,
                from ./libavutil/common.h:35,
                from ./libavutil/avutil.h:126,
                from libavdevice/avdevice.h:22,
                from libavdevice/alldevices.c:22:
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/strings.h:49: warning: redundant redeclaration of &#39;index&#39;
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/string.h:47: note: previous declaration of &#39;index&#39; was here
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/strings.h:50: warning: redundant redeclaration of &#39;strcasecmp&#39;
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/string.h:57: note: previous declaration of &#39;strcasecmp&#39; was here
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/strings.h:51: warning: redundant redeclaration of &#39;strncasecmp&#39;
    /Users/gyeongmingim/android-ndk-r8/platforms/android-8/arch-arm/usr/include/string.h:58: note: previous declaration of &#39;strncasecmp&#39; was here
    In file included from ./libavutil/internal.h:178,
                from ./libavutil/common.h:342,
                from ./libavutil/avutil.h:126,
                from libavdevice/avdevice.h:22,
                from libavdevice/alldevices.c:22:
    ./libavutil/libm.h:62: error: static declaration of &#39;lrint&#39; follows non-static declaration
    ./libavutil/libm.h:69: error: static declaration of &#39;lrintf&#39; follows non-static declaration
    ./libavutil/libm.h:76: error: static declaration of &#39;round&#39; follows non-static declaration
    ./libavutil/libm.h:90: error: static declaration of &#39;trunc&#39; follows non-static declaration
    make: *** [libavdevice/alldevices.o] Error 1

    What is the wrong ?
    Does my configuration have wrong info ? or any missing flag ?

    OS : Mac Lion
    Android-ndk ver : android-ndk-r8

  • Revision 36958 : Petite mise à jour de base de donnée... Pixelformat n’est pas un int mais ...

    5 avril 2010, par kent1@… — Log

    Petite mise à jour de base de donnée... Pixelformat n’est pas un int mais un string
    On ne refile pas de valeurs hallucinantes à l’encodeur non plus