male/female colored plots
This commit is contained in:
7
utils.py
7
utils.py
@@ -508,9 +508,16 @@ def update_ppt_alt_text(ppt_path: Union[str, Path], image_source_dir: Union[str,
|
||||
print(f"Error updating alt text for {original_path}: {e}")
|
||||
|
||||
else:
|
||||
# Check if image already has alt text set - if so, skip reporting as unmatched
|
||||
existing_alt = _get_shape_alt_text(shape)
|
||||
if existing_alt:
|
||||
# Image already has alt text, no need to report as unmatched
|
||||
continue
|
||||
|
||||
shape_id = getattr(shape, 'shape_id', getattr(shape, 'id', 'Unknown ID'))
|
||||
shape_name = shape.name if shape.name else f"Unnamed Shape (ID: {shape_id})"
|
||||
hash_type = "pHash" if use_perceptual_hash else "SHA1"
|
||||
|
||||
unmatched_images.append({
|
||||
'slide': i+1,
|
||||
'shape_name': shape_name,
|
||||
|
||||
Reference in New Issue
Block a user