EPS to large PNG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
benmcfadden
Posts: 4
Joined: 2014-08-13T11:29:12-07:00
Authentication code: 6789

EPS to large PNG

Post by benmcfadden »

I'm trying to convert EPS files to PNGs at varying resolutions. The result is an incredibly low resolution PNG (ex 300x300). I really need it closer to 1000x1000 for this. When I add

Code: Select all

-resize 1000x1000
it simply upscales the rasterized PNG which is not what I want. Here's what I've tried, along with the results:

Attempt 1:

Code: Select all

convert source.eps destination.png
Low resolution PNG (300x301)

Attempt 2:

Code: Select all

convert source.eps -resize 1000x1000 destination.png
Upscaled PNG (997 x 1000 ) that is clearly the result of taking a 300x301 png and scaling it to 993 x 1000.

Attempt 3:

Code: Select all

convert -density 300 source.eps -resize 1000x1000 destination.png
Identical to attempt 2

Attempt 4:

Code: Select all

convert -density 1000 source.eps -resize 1000x1000 destination.png
Identical to attempt 2 and attempt 3

Attempt 5:

Code: Select all

convert -density 200% source.eps destination.png
Identical to attempt 1

Attempt 6

Code: Select all

convert -density 200% source.eps -resize 1000x1000 destination.png
Identical to attempts 2, 3, and 4


Image magic version:

Code: Select all

Version: ImageMagick 6.8.9-5 Q16 x86_64 2014-08-13 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
verbose identify on source.eps:

Code: Select all

Image: source.eps
  Format: EPT (Encapsulated PostScript with TIFF preview)
  Class: PseudoClass
  Geometry: 300x301+0+0
  Units: PixelsPerInch
  Type: PaletteAlpha
  Base type: Palette
  Endianess: MSB
  Colorspace: sRGB
  Depth: 4-bit
  Channel depth:
    red: 4-bit
    green: 4-bit
    blue: 4-bit
    alpha: 1-bit
  Channel statistics:
    Red:
      min: 9 (0.6)
      max: 15 (1)
      mean: 14.1761 (0.945072)
      standard deviation: 1.35858 (0.090572)
      kurtosis: -0.514103
      skewness: -1.10431
    Green:
      min: 0 (0)
      max: 15 (1)
      mean: 5.9087 (0.393914)
      standard deviation: 6.27914 (0.418609)
      kurtosis: -1.3805
      skewness: 0.663014
    Blue:
      min: 0 (0)
      max: 15 (1)
      mean: 6.43243 (0.428828)
      standard deviation: 5.87969 (0.391979)
      kurtosis: -1.35486
      skewness: 0.694728
    Alpha:
      min: 15 (1)
      max: 15 (1)
      mean: 15 (1)
      standard deviation: 0 (0)
      kurtosis: 0
      skewness: 0
  Image statistics:
    Overall:
      min: 0 (0)
      max: 15 (1)
      mean: 6.6293 (0.441953)
      standard deviation: 4.35443 (0.290295)
      kurtosis: 3.78772
      skewness: 1.14098
  Colors: 17
  Histogram:
       217: (153,  0, 51,255) #990033 srgba(153,0,51,1)
        48: (153, 51, 51,255) #993333 srgba(153,51,51,1)
     11051: (204,  0,  0,255) #CC0000 srgba(204,0,0,1)
     11771: (204,  0, 51,255) #CC0033 srgba(204,0,51,1)
      1315: (204, 51, 51,255) #CC3333 srgba(204,51,51,1)
        63: (204, 51,102,255) #CC3366 srgba(204,51,102,1)
        19: (204,102,102,255) #CC6666 srgba(204,102,102,1)
        32: (204,102,153,255) #CC6699 srgba(204,102,153,1)
        19: (204,153,153,255) #CC9999 srgba(204,153,153,1)
      3655: (255,  0, 51,255) #FF0033 srgba(255,0,51,1)
     33165: (255, 51, 51,255) #FF3333 srgba(255,51,51,1)
        14: (255, 51,102,255) #FF3366 srgba(255,51,102,1)
       126: (255,102,102,255) #FF6666 srgba(255,102,102,1)
       475: (255,153,153,255) #FF9999 srgba(255,153,153,1)
        12: (255,153,204,255) #FF99CC srgba(255,153,204,1)
       215: (255,204,204,255) #FFCCCC srgba(255,204,204,1)
     28103: (255,255,255,255) #FFFFFF white
  Colormap entries: 256
  Colormap:
         0: (  0,  0, 51,255) #000033 srgba(0,0,51,1)
         1: (  0,  0,102,255) #000066 srgba(0,0,102,1)
         2: (  0,  0,153,255) #000099 srgba(0,0,153,1)
         3: (  0,  0,204,255) #0000CC srgba(0,0,204,1)
         4: (  0, 51,  0,255) #003300 srgba(0,51,0,1)
         5: (  0, 51, 51,255) #003333 srgba(0,51,51,1)
         6: (  0, 51,102,255) #003366 srgba(0,51,102,1)
         7: (  0, 51,153,255) #003399 srgba(0,51,153,1)
         8: (  0, 51,204,255) #0033CC srgba(0,51,204,1)
         9: (  0, 51,255,255) #0033FF srgba(0,51,255,1)
        10: (  0,102,  0,255) #006600 srgba(0,102,0,1)
        11: (  0,102, 51,255) #006633 srgba(0,102,51,1)
        12: (  0,102,102,255) #006666 srgba(0,102,102,1)
        13: (  0,102,153,255) #006699 srgba(0,102,153,1)
        14: (  0,102,204,255) #0066CC srgba(0,102,204,1)
        15: (  0,102,255,255) #0066FF srgba(0,102,255,1)
        16: (  0,153,  0,255) #009900 srgba(0,153,0,1)
        17: (  0,153, 51,255) #009933 srgba(0,153,51,1)
        18: (  0,153,102,255) #009966 srgba(0,153,102,1)
        19: (  0,153,153,255) #009999 srgba(0,153,153,1)
        20: (  0,153,204,255) #0099CC srgba(0,153,204,1)
        21: (  0,153,255,255) #0099FF srgba(0,153,255,1)
        22: (  0,204,  0,255) #00CC00 srgba(0,204,0,1)
        23: (  0,204, 51,255) #00CC33 srgba(0,204,51,1)
        24: (  0,204,102,255) #00CC66 srgba(0,204,102,1)
        25: (  0,204,153,255) #00CC99 srgba(0,204,153,1)
        26: (  0,204,204,255) #00CCCC srgba(0,204,204,1)
        27: (  0,204,255,255) #00CCFF srgba(0,204,255,1)
        28: (  0,255, 51,255) #00FF33 srgba(0,255,51,1)
        29: (  0,255,102,255) #00FF66 srgba(0,255,102,1)
        30: (  0,255,153,255) #00FF99 srgba(0,255,153,1)
        31: (  0,255,204,255) #00FFCC srgba(0,255,204,1)
        32: ( 51,  0,  0,255) #330000 srgba(51,0,0,1)
        33: ( 51,  0, 51,255) #330033 srgba(51,0,51,1)
        34: ( 51,  0,102,255) #330066 srgba(51,0,102,1)
        35: ( 51,  0,153,255) #330099 srgba(51,0,153,1)
        36: ( 51,  0,204,255) #3300CC srgba(51,0,204,1)
        37: ( 51,  0,255,255) #3300FF srgba(51,0,255,1)
        38: ( 51, 51,  0,255) #333300 srgba(51,51,0,1)
        39: ( 51, 51, 51,255) #333333 grey20
        40: ( 51, 51,102,255) #333366 srgba(51,51,102,1)
        41: ( 51, 51,153,255) #333399 srgba(51,51,153,1)
        42: ( 51, 51,204,255) #3333CC srgba(51,51,204,1)
        43: ( 51, 51,255,255) #3333FF srgba(51,51,255,1)
        44: ( 51,102,  0,255) #336600 srgba(51,102,0,1)
        45: ( 51,102, 51,255) #336633 srgba(51,102,51,1)
        46: ( 51,102,102,255) #336666 srgba(51,102,102,1)
        47: ( 51,102,153,255) #336699 srgba(51,102,153,1)
        48: ( 51,102,204,255) #3366CC srgba(51,102,204,1)
        49: ( 51,102,255,255) #3366FF srgba(51,102,255,1)
        50: ( 51,153,  0,255) #339900 srgba(51,153,0,1)
        51: ( 51,153, 51,255) #339933 srgba(51,153,51,1)
        52: ( 51,153,102,255) #339966 srgba(51,153,102,1)
        53: ( 51,153,153,255) #339999 srgba(51,153,153,1)
        54: ( 51,153,204,255) #3399CC srgba(51,153,204,1)
        55: ( 51,153,255,255) #3399FF srgba(51,153,255,1)
        56: ( 51,204,  0,255) #33CC00 srgba(51,204,0,1)
        57: ( 51,204, 51,255) #33CC33 srgba(51,204,51,1)
        58: ( 51,204,102,255) #33CC66 srgba(51,204,102,1)
        59: ( 51,204,153,255) #33CC99 srgba(51,204,153,1)
        60: ( 51,204,204,255) #33CCCC srgba(51,204,204,1)
        61: ( 51,204,255,255) #33CCFF srgba(51,204,255,1)
        62: ( 51,255,  0,255) #33FF00 srgba(51,255,0,1)
        63: ( 51,255, 51,255) #33FF33 srgba(51,255,51,1)
        64: ( 51,255,102,255) #33FF66 srgba(51,255,102,1)
        65: ( 51,255,153,255) #33FF99 srgba(51,255,153,1)
        66: ( 51,255,204,255) #33FFCC srgba(51,255,204,1)
        67: ( 51,255,255,255) #33FFFF srgba(51,255,255,1)
        68: (102,  0,  0,255) #660000 srgba(102,0,0,1)
        69: (102,  0, 51,255) #660033 srgba(102,0,51,1)
        70: (102,  0,102,255) #660066 srgba(102,0,102,1)
        71: (102,  0,153,255) #660099 srgba(102,0,153,1)
        72: (102,  0,204,255) #6600CC srgba(102,0,204,1)
        73: (102,  0,255,255) #6600FF srgba(102,0,255,1)
        74: (102, 51,  0,255) #663300 srgba(102,51,0,1)
        75: (102, 51, 51,255) #663333 srgba(102,51,51,1)
        76: (102, 51,102,255) #663366 srgba(102,51,102,1)
        77: (102, 51,153,255) #663399 srgba(102,51,153,1)
        78: (102, 51,204,255) #6633CC srgba(102,51,204,1)
        79: (102, 51,255,255) #6633FF srgba(102,51,255,1)
        80: (102,102,  0,255) #666600 srgba(102,102,0,1)
        81: (102,102, 51,255) #666633 srgba(102,102,51,1)
        82: (102,102,102,255) #666666 grey40
        83: (102,102,153,255) #666699 srgba(102,102,153,1)
        84: (102,102,204,255) #6666CC srgba(102,102,204,1)
        85: (102,102,255,255) #6666FF srgba(102,102,255,1)
        86: (102,153,  0,255) #669900 srgba(102,153,0,1)
        87: (102,153, 51,255) #669933 srgba(102,153,51,1)
        88: (102,153,102,255) #669966 srgba(102,153,102,1)
        89: (102,153,153,255) #669999 srgba(102,153,153,1)
        90: (102,153,204,255) #6699CC srgba(102,153,204,1)
        91: (102,153,255,255) #6699FF srgba(102,153,255,1)
        92: (102,204,  0,255) #66CC00 srgba(102,204,0,1)
        93: (102,204, 51,255) #66CC33 srgba(102,204,51,1)
        94: (102,204,102,255) #66CC66 srgba(102,204,102,1)
        95: (102,204,153,255) #66CC99 srgba(102,204,153,1)
        96: (102,204,204,255) #66CCCC srgba(102,204,204,1)
        97: (102,204,255,255) #66CCFF srgba(102,204,255,1)
        98: (102,255,  0,255) #66FF00 srgba(102,255,0,1)
        99: (102,255, 51,255) #66FF33 srgba(102,255,51,1)
       100: (102,255,102,255) #66FF66 srgba(102,255,102,1)
       101: (102,255,153,255) #66FF99 srgba(102,255,153,1)
       102: (102,255,204,255) #66FFCC srgba(102,255,204,1)
       103: (102,255,255,255) #66FFFF srgba(102,255,255,1)
       104: (153,  0,  0,255) #990000 srgba(153,0,0,1)
       105: (153,  0, 51,255) #990033 srgba(153,0,51,1)
       106: (153,  0,102,255) #990066 srgba(153,0,102,1)
       107: (153,  0,153,255) #990099 srgba(153,0,153,1)
       108: (153,  0,204,255) #9900CC srgba(153,0,204,1)
       109: (153,  0,255,255) #9900FF srgba(153,0,255,1)
       110: (153, 51,  0,255) #993300 srgba(153,51,0,1)
       111: (153, 51, 51,255) #993333 srgba(153,51,51,1)
       112: (153, 51,102,255) #993366 srgba(153,51,102,1)
       113: (153, 51,153,255) #993399 srgba(153,51,153,1)
       114: (153, 51,204,255) #9933CC srgba(153,51,204,1)
       115: (153, 51,255,255) #9933FF srgba(153,51,255,1)
       116: (153,102,  0,255) #996600 srgba(153,102,0,1)
       117: (153,102, 51,255) #996633 srgba(153,102,51,1)
       118: (153,102,102,255) #996666 srgba(153,102,102,1)
       119: (153,102,153,255) #996699 srgba(153,102,153,1)
       120: (153,102,204,255) #9966CC srgba(153,102,204,1)
       121: (153,102,255,255) #9966FF srgba(153,102,255,1)
       122: (153,153,  0,255) #999900 srgba(153,153,0,1)
       123: (153,153, 51,255) #999933 srgba(153,153,51,1)
       124: (153,153,102,255) #999966 srgba(153,153,102,1)
       125: (153,153,153,255) #999999 grey60
       126: (153,153,204,255) #9999CC srgba(153,153,204,1)
       127: (153,153,255,255) #9999FF srgba(153,153,255,1)
       128: (153,204,  0,255) #99CC00 srgba(153,204,0,1)
       129: (153,204, 51,255) #99CC33 srgba(153,204,51,1)
       130: (153,204,102,255) #99CC66 srgba(153,204,102,1)
       131: (153,204,153,255) #99CC99 srgba(153,204,153,1)
       132: (153,204,204,255) #99CCCC srgba(153,204,204,1)
       133: (153,204,255,255) #99CCFF srgba(153,204,255,1)
       134: (153,255,  0,255) #99FF00 srgba(153,255,0,1)
       135: (153,255, 51,255) #99FF33 srgba(153,255,51,1)
       136: (153,255,102,255) #99FF66 srgba(153,255,102,1)
       137: (153,255,153,255) #99FF99 srgba(153,255,153,1)
       138: (153,255,204,255) #99FFCC srgba(153,255,204,1)
       139: (153,255,255,255) #99FFFF srgba(153,255,255,1)
       140: (204,  0,  0,255) #CC0000 srgba(204,0,0,1)
       141: (204,  0, 51,255) #CC0033 srgba(204,0,51,1)
       142: (204,  0,102,255) #CC0066 srgba(204,0,102,1)
       143: (204,  0,153,255) #CC0099 srgba(204,0,153,1)
       144: (204,  0,204,255) #CC00CC srgba(204,0,204,1)
       145: (204,  0,255,255) #CC00FF srgba(204,0,255,1)
       146: (204, 51,  0,255) #CC3300 srgba(204,51,0,1)
       147: (204, 51, 51,255) #CC3333 srgba(204,51,51,1)
       148: (204, 51,102,255) #CC3366 srgba(204,51,102,1)
       149: (204, 51,153,255) #CC3399 srgba(204,51,153,1)
       150: (204, 51,204,255) #CC33CC srgba(204,51,204,1)
       151: (204, 51,255,255) #CC33FF srgba(204,51,255,1)
       152: (204,102,  0,255) #CC6600 srgba(204,102,0,1)
       153: (204,102, 51,255) #CC6633 srgba(204,102,51,1)
       154: (204,102,102,255) #CC6666 srgba(204,102,102,1)
       155: (204,102,153,255) #CC6699 srgba(204,102,153,1)
       156: (204,102,204,255) #CC66CC srgba(204,102,204,1)
       157: (204,102,255,255) #CC66FF srgba(204,102,255,1)
       158: (204,153,  0,255) #CC9900 srgba(204,153,0,1)
       159: (204,153, 51,255) #CC9933 srgba(204,153,51,1)
       160: (204,153,102,255) #CC9966 srgba(204,153,102,1)
       161: (204,153,153,255) #CC9999 srgba(204,153,153,1)
       162: (204,153,204,255) #CC99CC srgba(204,153,204,1)
       163: (204,153,255,255) #CC99FF srgba(204,153,255,1)
       164: (204,204,  0,255) #CCCC00 srgba(204,204,0,1)
       165: (204,204, 51,255) #CCCC33 srgba(204,204,51,1)
       166: (204,204,102,255) #CCCC66 srgba(204,204,102,1)
       167: (204,204,153,255) #CCCC99 srgba(204,204,153,1)
       168: (204,204,204,255) #CCCCCC grey80
       169: (204,204,255,255) #CCCCFF srgba(204,204,255,1)
       170: (204,255,  0,255) #CCFF00 srgba(204,255,0,1)
       171: (204,255, 51,255) #CCFF33 srgba(204,255,51,1)
       172: (204,255,102,255) #CCFF66 srgba(204,255,102,1)
       173: (204,255,153,255) #CCFF99 srgba(204,255,153,1)
       174: (204,255,204,255) #CCFFCC srgba(204,255,204,1)
       175: (204,255,255,255) #CCFFFF srgba(204,255,255,1)
       176: (255,  0, 51,255) #FF0033 srgba(255,0,51,1)
       177: (255,  0,102,255) #FF0066 srgba(255,0,102,1)
       178: (255,  0,153,255) #FF0099 srgba(255,0,153,1)
       179: (255,  0,204,255) #FF00CC srgba(255,0,204,1)
       180: (255, 51,  0,255) #FF3300 srgba(255,51,0,1)
       181: (255, 51, 51,255) #FF3333 srgba(255,51,51,1)
       182: (255, 51,102,255) #FF3366 srgba(255,51,102,1)
       183: (255, 51,153,255) #FF3399 srgba(255,51,153,1)
       184: (255, 51,204,255) #FF33CC srgba(255,51,204,1)
       185: (255, 51,255,255) #FF33FF srgba(255,51,255,1)
       186: (255,102,  0,255) #FF6600 srgba(255,102,0,1)
       187: (255,102, 51,255) #FF6633 srgba(255,102,51,1)
       188: (255,102,102,255) #FF6666 srgba(255,102,102,1)
       189: (255,102,153,255) #FF6699 srgba(255,102,153,1)
       190: (255,102,204,255) #FF66CC srgba(255,102,204,1)
       191: (255,102,255,255) #FF66FF srgba(255,102,255,1)
       192: (255,153,  0,255) #FF9900 srgba(255,153,0,1)
       193: (255,153, 51,255) #FF9933 srgba(255,153,51,1)
       194: (255,153,102,255) #FF9966 srgba(255,153,102,1)
       195: (255,153,153,255) #FF9999 srgba(255,153,153,1)
       196: (255,153,204,255) #FF99CC srgba(255,153,204,1)
       197: (255,153,255,255) #FF99FF srgba(255,153,255,1)
       198: (255,204,  0,255) #FFCC00 srgba(255,204,0,1)
       199: (255,204, 51,255) #FFCC33 srgba(255,204,51,1)
       200: (255,204,102,255) #FFCC66 srgba(255,204,102,1)
       201: (255,204,153,255) #FFCC99 srgba(255,204,153,1)
       202: (255,204,204,255) #FFCCCC srgba(255,204,204,1)
       203: (255,204,255,255) #FFCCFF srgba(255,204,255,1)
       204: (255,255, 51,255) #FFFF33 srgba(255,255,51,1)
       205: (255,255,102,255) #FFFF66 srgba(255,255,102,1)
       206: (255,255,153,255) #FFFF99 srgba(255,255,153,1)
       207: (255,255,204,255) #FFFFCC srgba(255,255,204,1)
       208: ( 17,  0,  0,255) #110000 srgba(17,0,0,1)
       209: (  0, 17,  0,255) #001100 srgba(0,17,0,1)
       210: (  0,  0, 17,255) #000011 srgba(0,0,17,1)
       211: ( 17, 17, 17,255) #111111 srgba(17,17,17,1)
       212: ( 34,  0,  0,255) #220000 srgba(34,0,0,1)
       213: (  0, 34,  0,255) #002200 srgba(0,34,0,1)
       214: (  0,  0, 34,255) #000022 srgba(0,0,34,1)
       215: ( 34, 34, 34,255) #222222 srgba(34,34,34,1)
       216: ( 68,  0,  0,255) #440000 srgba(68,0,0,1)
       217: (  0, 68,  0,255) #004400 srgba(0,68,0,1)
       218: (  0,  0, 68,255) #000044 srgba(0,0,68,1)
       219: ( 68, 68, 68,255) #444444 srgba(68,68,68,1)
       220: ( 85,  0,  0,255) #550000 srgba(85,0,0,1)
       221: (  0, 85,  0,255) #005500 srgba(0,85,0,1)
       222: (  0,  0, 85,255) #000055 srgba(0,0,85,1)
       223: ( 85, 85, 85,255) #555555 srgba(85,85,85,1)
       224: (119,  0,  0,255) #770000 srgba(119,0,0,1)
       225: (  0,119,  0,255) #007700 srgba(0,119,0,1)
       226: (  0,  0,119,255) #000077 srgba(0,0,119,1)
       227: (119,119,119,255) #777777 srgba(119,119,119,1)
       228: (136,  0,  0,255) #880000 srgba(136,0,0,1)
       229: (  0,136,  0,255) #008800 srgba(0,136,0,1)
       230: (  0,  0,136,255) #000088 srgba(0,0,136,1)
       231: (136,136,136,255) #888888 srgba(136,136,136,1)
       232: (170,  0,  0,255) #AA0000 srgba(170,0,0,1)
       233: (  0,170,  0,255) #00AA00 srgba(0,170,0,1)
       234: (  0,  0,170,255) #0000AA srgba(0,0,170,1)
       235: (170,170,170,255) #AAAAAA srgba(170,170,170,1)
       236: (187,  0,  0,255) #BB0000 srgba(187,0,0,1)
       237: (  0,187,  0,255) #00BB00 srgba(0,187,0,1)
       238: (  0,  0,187,255) #0000BB srgba(0,0,187,1)
       239: (187,187,187,255) #BBBBBB srgba(187,187,187,1)
       240: (221,  0,  0,255) #DD0000 srgba(221,0,0,1)
       241: (  0,221,  0,255) #00DD00 srgba(0,221,0,1)
       242: (  0,  0,221,255) #0000DD srgba(0,0,221,1)
       243: (221,221,221,255) #DDDDDD srgba(221,221,221,1)
       244: (238,  0,  0,255) #EE0000 srgba(238,0,0,1)
       245: (  0,238,  0,255) #00EE00 srgba(0,238,0,1)
       246: (  0,  0,238,255) #0000EE srgba(0,0,238,1)
       247: (238,238,238,255) #EEEEEE srgba(238,238,238,1)
       248: (  0,  0,  0,255) #000000 black
       249: (  0,  0,255,255) #0000FF blue
       250: (  0,255,  0,255) #00FF00 lime
       251: (  0,255,255,255) #00FFFF cyan
       252: (255,  0,  0,255) #FF0000 red
       253: (255,  0,255,255) #FF00FF magenta
       254: (255,255,  0,255) #FFFF00 yellow
       255: (255,255,255,255) #FFFFFF white
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.33)
    green primary: (0.3,0.6)
    blue primary: (0.15,0.06)
    white point: (0.3127,0.329)
  Background color: white
  Border color: srgba(223,223,223,1)
  Matte color: grey74
  Transparent color: none
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 300x301+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: TopLeft
  Properties:
    date:create: 2014-08-13T11:55:46-07:00
    date:modify: 2014-08-13T11:55:46-07:00
    signature: cb2808b0798f767fb1302045c87da9083ef3c892bfefcfa941b79903630ab2f9
    tiff:alpha: unassociated
    tiff:endian: lsb
    tiff:photometric: palette
    tiff:rows-per-strip: 13
  Clipping path: 
<?xml version="1.0" encoding="iso-8859-1"?>
<svg width="300" height="301">
<g>
<path style="fill:#00000000;stroke:#00000000;stroke-width:0;stroke-antialiasing:false" d="
M 300 0
C 300 66.5 300 133 300 199.5
C 300 233.333 300 267.167 300 301
L 0 301
C 0 234.5 0 168 0 101.5
C 0 67.6667 0 33.8333 0 0
L 300 0 Z
"/>
</g>
</svg>

  Profiles:
    Profile-8bim: 242 bytes
  Artifacts:
    filename: source.eps
    verbose: true
  Tainted: False
  Filesize: 183KB
  Number pixels: 90.3K
  Pixels per second: 9.03MB
  User time: 0.010u
  Elapsed time: 0:01.009
  Version: ImageMagick 6.8.9-5 Q16 x86_64 2014-08-13 http://www.imagemagick.org
identify: Invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectoryCheckOrder' @ warning/tiff.c/TIFFWarnings/857.

It seems no matter what I set the -density flag to the output is the same.

Thanks in advance!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS to large PNG

Post by fmw42 »

The following should work. Adjust the density until you get the output png size desired. Or make it even larger and then downsize with -resize before writing to png

If that does not work, upload your eps file to some free hosting service such as dropbox.com (public folder) and post the URL here.

Code: Select all

convert -density XX source.eps destination.png
where XX is as large as needed to get the output size for the png.


Or

Code: Select all

convert -density YY source.eps -resize WxH destination.png
where YY creates an image that is several times larger than what you need to get your desired WxH

If you eps is in CMYK, then PNG does not support that. So you would need to add -colorspace sRGB before reading the eps, i.e. right after -density.
benmcfadden
Posts: 4
Joined: 2014-08-13T11:29:12-07:00
Authentication code: 6789

Re: EPS to large PNG

Post by benmcfadden »

Thanks.

I've tried density values as high as 1000000000000 and nothing changes on the output at all.

Here's the source file I'm using: https://www.dropbox.com/s/bc5d2vcaigd46et/source001.eps
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS to large PNG

Post by fmw42 »

This works for me with IM 6.8.9.6 Q16 Mac OSX. Your eps is CMYK, so it needs to be converted to sRGB first, since PNG does not support CMYK.

Code: Select all

convert -density 500 -colorspace sRGB source001.eps source001.png
I get a png image that is about 2000x2000 pixels.
benmcfadden
Posts: 4
Joined: 2014-08-13T11:29:12-07:00
Authentication code: 6789

Re: EPS to large PNG

Post by benmcfadden »

Interesting. I'm running 6.8.9-5 Q16 on OS X.

I'll try on another machine in a bit and report back.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: EPS to large PNG

Post by snibgo »

The version of Ghostscript may also be relevant.
snibgo's IM pages: im.snibgo.com
benmcfadden
Posts: 4
Joined: 2014-08-13T11:29:12-07:00
Authentication code: 6789

Re: EPS to large PNG

Post by benmcfadden »

I reinstalled imagemagick, libpng, libtiff, and ghostscript and now it's working as expected. Not sure what exactly was wrong. Thanks!
Post Reply