From ef148f9e84eb3b9f1482d4b926d102c18e0eb131 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Fri, 23 May 2008 22:39:49 +0000 Subject: delete unused files svn path=/trunk/externals/pdvjtools/; revision=9875 --- imagegrid/magickconverter.c | 52 --------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 imagegrid/magickconverter.c (limited to 'imagegrid/magickconverter.c') diff --git a/imagegrid/magickconverter.c b/imagegrid/magickconverter.c deleted file mode 100644 index d553e27..0000000 --- a/imagegrid/magickconverter.c +++ /dev/null @@ -1,52 +0,0 @@ -#include "magickconverter.h" - -void convertir(pathimage pathFitxer, tipus_format f, int W, int H, int posi){ - - MagickBooleanType - status; - MagickWand - *magick_wand; - pathimage ig_path = PATH_TEMPORAL; - char posi_str[BYTES_NUM_TEMP]; - - /*printf("\nEl path %s i el format %s\n",pathFitxer,f);*/ - - /* - Read an image. - */ - MagickWandGenesis(); - magick_wand=NewMagickWand(); - status=MagickReadImage(magick_wand,pathFitxer); - if (status == MagickFalse) - ThrowWandException(magick_wand); - /* - Turn the images into a thumbnail sequence. - */ - MagickResetIterator(magick_wand); - while (MagickNextImage(magick_wand) != MagickFalse) - MagickResizeImage(magick_wand,W,H,LanczosFilter,1.0); - /* - Write the image as 'f' and destroy it. - */ - sprintf(posi_str, "%d", posi); - strcat(ig_path,posi_str); - strcat(ig_path,"."); - strcat(ig_path,f); - - /* printf("\nEl nou path %s i el format %s\n",ig_path,f); */ - status=MagickWriteImages(magick_wand,ig_path,MagickTrue); - if (status == MagickFalse) - ThrowWandException(magick_wand); - magick_wand=DestroyMagickWand(magick_wand); - MagickWandTerminus(); -} - -/* -int main(void){ - pathimage imatge = "/usr/lib/pd/extra/imagegrid/gifpmmimages/3160x120.gif"; - format fo = "ppm"; - int numi = 1; - convertir(imatge,fo,60,40,1); - return(0); -} -*/ -- cgit v1.2.1