Can't Submit Images

Create issue
Issue #119 new
Timothy Keesey repo owner created an issue
Traceback (most recent call last):
  File "/var/www/phylopic/data/www/phylopic.org/phylopic/accounts/views.py", line 173, in submit_result
    phylopic.illustration.api.add(imageUID, request.user, credit, licenseURL, nameUIDs, request.FILES)
  File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/api.py", line 40, in add
    process_uploaded_file(file, image)
  File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 187, in process_uploaded_file
    process(name, image)
  File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 87, in process
    in_id = identify(in_name)
  File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 64, in identify
    raise Exception(stderr)
Exception: identify: iCCP: known incorrect sRGB profile `/tmp/a4424d27-3bcf-4ad5-abcb-adf83a0c298c' @ warning/png.c/MagickPNGWarningHandler/1787.

Comments (12)

  1. Timothy Keesey reporter

    The SVG gets a somewhat different error:

    Traceback (most recent call last):
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/accounts/views.py", line 173, in submit_result
        phylopic.illustration.api.add(imageUID, request.user, credit, licenseURL, nameUIDs, request.FILES)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/api.py", line 40, in add
        process_uploaded_file(file, image)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 187, in process_uploaded_file
        process(name, image)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 93, in process
        process_vector(in_id, image)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 223, in process_vector
        image.hash = hash(raw_name)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 27, in hash
        f = open(file_name, 'rb')
    IOError: [Errno 2] No such file or directory: '/tmp/6f16c000-5399-4665-ab45-dd3dd78c96cf.raw.png'
    
  2. Timothy Keesey reporter

    Getting this for the attached TIFF:

    Traceback (most recent call last):
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/views.py", line 67, in imagePage
        api.edit(uid, request.user, files=request.FILES)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/api.py", line 156, in edit
        process_uploaded_file(replacement_file, image)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 187, in process_uploaded_file
        process(name, image)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 87, in process
        in_id = identify(in_name)
      File "/var/www/phylopic/data/www/phylopic.org/phylopic/illustration/process.py", line 64, in identify
        raise Exception(stderr)
    Exception: identify: /tmp/355070f5-fd58-4424-8fe4-23893c167ca9: wrong data type 7 for "RichTIFFIPTC"; tag ignored. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.
    
  3. Timothy Keesey reporter

    As a temporary fix, add this warning text to the instructions on the Submission Page:

    Due to a bug in Adobe Photoshop, you may have trouble uploading PNG files with 8-bit depth. As a workaround, simply change the color depth to 16-bit.

  4. Log in to comment