Enlightenment CVS committal

Author  : technikolor
Project : web
Module  : e

Dir     : web/e/pages/linuxworld


Modified Files:
        thumb_it thumb_it.c 


Log Message:
DR17 page updated
===================================================================
RCS file: /cvsroot/enlightenment/web/e/pages/linuxworld/thumb_it,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
Binary files /tmp/cvsMrLaGx and /tmp/cvsTburUo differ
===================================================================
RCS file: /cvsroot/enlightenment/web/e/pages/linuxworld/thumb_it.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- thumb_it.c  29 Nov 2004 04:13:27 -0000      1.3
+++ thumb_it.c  29 Nov 2004 05:04:48 -0000      1.4
@@ -9,7 +9,6 @@
 #include <sys/param.h>
 
 #define THUMB_HEIGHT 120
-#define THUMB_WIDTH 500
 
 int main(int argc, char *argv[]){
 
@@ -39,11 +38,11 @@
 
                snprintf(filename, sizeof(filename), "tn_%s", argv[i]);
                
-               ratio = w / THUMB_WIDTH;
-               h = h / ratio;
+               ratio = h / THUMB_HEIGHT;
+               w = w / ratio;
                //printf("Aspected: %d x %d\n", w, THUMB_HEIGHT);
                
-               epeg_decode_size_set(image, THUMB_WIDTH, h);
+               epeg_decode_size_set(image, w, THUMB_HEIGHT);
                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