Skip to content

the script can't get the image's size #11

@gpapin

Description

@gpapin

The script fail when I try to get the geometry from the previously generated thumbfiles.
I've checked and they are on disk - so I wonder what's going on.

Here is the line that trigger the exception
coords = get_geometry(thumbfiles[0]) #use the first file (since they are all same size) to get geometry settings

Here is the exception:

ERROR   [2016-11-10 17:36:34.543343] An exception occurred
None
[Errno 2] No such file or directory
Traceback (most recent call last):
  File "sprites/makesprites.py", line 298, in <module>
    run(task)
  File "sprites/makesprites.py", line 263, in run
    coords = get_geometry(thumbfiles[0]) #use the first file (since they are all same size) to get geometry settings
  File "sprites/makesprites.py", line 144, in get_geometry
    geom = doCmd("""identify -format "%%g - %%f\n" %s""" % pipes.quote(file))
  File "sprites/makesprites.py", line 97, in doCmd
    raise e #todo ?
OSError: [Errno 2] No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions