Automatically find frame sizes from png sprite sheet [duplicate]
问题 This question already has an answer here : Closed 6 years ago . Possible Duplicate: PySide: Separating a spritesheet / Separating an image into contiguous regions of color Given a .png image with transparent pixels and a grid of individual animation frames (where the last row need not be full), how would you automatically find the dimensions of each individual frame, and detect how many frames are in the .png? I am trying to convert the resources from the creative-commons treasure-trove of