def _get_cropping_data(doc):
    """Get PIL Image crop data from doc with superdesk crops specs.

    :param doc: crop dict
    """
    if all([doc.get('CropTop', None) is not None, doc.get('CropLeft', None)
         is not None, doc.get('CropRight', None) is not None, doc.get(
        'CropBottom', None) is not None]):
        return int(doc['CropLeft']), int(doc['CropTop']), int(doc['CropRight']
            ), int(doc['CropBottom'])
