wmphotos calls convert with wrong parameters and fails. The following
patch fix it.

Within convert, parameter -dither now requires a parameter and parameter
-geometry is now -resize

Index: patches/patch-wmphoto_wmphoto_c
===================================================================
RCS file: /cvs/ports/graphics/wmphoto/patches/patch-wmphoto_wmphoto_c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-wmphoto_wmphoto_c
--- patches/patch-wmphoto_wmphoto_c     16 Jan 2001 22:44:43 -0000      1.1.1.1
+++ patches/patch-wmphoto_wmphoto_c     27 Apr 2018 12:48:09 -0000
@@ -1,6 +1,7 @@
 $OpenBSD: patch-wmphoto_wmphoto_c,v 1.1.1.1 2001/01/16 22:44:43 naddy Exp $
---- wmphoto/wmphoto.c.orig     Sun Oct  3 07:11:37 1999
-+++ wmphoto/wmphoto.c  Tue Jan 16 18:05:55 2001
+Index: wmphoto/wmphoto.c
+--- wmphoto/wmphoto.c.orig
++++ wmphoto/wmphoto.c
 @@ -34,7 +34,6 @@ char current[1024];

  char home[1024];
@@ -69,7 +70,7 @@ $OpenBSD: patch-wmphoto_wmphoto_c,v 1.1.

        printf("good.\nExecuting convert, this may take a while...\n");
 -      sprintf(current, "convert -colors 255 -dither -geometry 48x52! %s 
xpm:%s/%s.xpm.gz", filename, home, profile);
-+      snprintf(current, sizeof(current), "convert -colors 255 -dither 
-geometry 48x52! %s xpm:%s/%s.xpm.gz", filename, home, profile);
++      snprintf(current, sizeof(current), "convert -colors 255 -dither 
FloydSteinberg -resize 48x52! %s xpm:%s/%s.xpm.gz", filename, home, profile);
        printf("%s ", current);
        fflush(stdout);

Reply via email to