Enlightenment CVS committal

Author  : technikolor
Project : web
Module  : e

Dir     : web/e/pages/linuxworld


Modified Files:
        thumb_it thumb_it.c 


Log Message:
News update
===================================================================
RCS file: /cvsroot/enlightenment/web/e/pages/linuxworld/thumb_it,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
Binary files /tmp/cvsVfsS77 and /tmp/cvsHi5MAF differ
===================================================================
RCS file: /cvsroot/enlightenment/web/e/pages/linuxworld/thumb_it.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- thumb_it.c  24 Aug 2004 18:28:45 -0000      1.2
+++ thumb_it.c  29 Nov 2004 04:13:27 -0000      1.3
@@ -9,6 +9,7 @@
 #include <sys/param.h>
 
 #define THUMB_HEIGHT 120
+#define THUMB_WIDTH 500
 
 int main(int argc, char *argv[]){
 
@@ -38,11 +39,11 @@
 
                snprintf(filename, sizeof(filename), "tn_%s", argv[i]);
                
-               ratio = h / THUMB_HEIGHT;
-               w = w / ratio;
+               ratio = w / THUMB_WIDTH;
+               h = h / ratio;
                //printf("Aspected: %d x %d\n", w, THUMB_HEIGHT);
                
-               epeg_decode_size_set(image, w, THUMB_HEIGHT);
+               epeg_decode_size_set(image, THUMB_WIDTH, h);
                epeg_file_output_set(image, filename);
                epeg_encode(image);
                epeg_close(image);




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to