Results 1 to 2 of 2

Thread: ImageMagick syntax question

  1. #1
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default ImageMagick syntax question

    In the following script what does :- do?

    <?php
    header('Content-Type:image/jpg');
    system("convert images/pops/gdsample1.jpg -colors 13 jpg:-");
    ?>
    Last edited by james438; 01-18-2012 at 10:06 PM.
    To choose the lesser of two evils is still to choose evil. My personal site

  2. #2
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    I found the answer. jpg: says to output the image that is being processed in a jpg format. The - is the command that says do not write this to disk.

    Ignore the explanation for the - above. Read the official definition of Standard Out at the bottom of the page here: http://www.imagemagick.org/script/co...processing.php

    I'm not so sure that I understand it yet though.
    Last edited by james438; 01-19-2012 at 02:38 AM.
    To choose the lesser of two evils is still to choose evil. My personal site

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •