Add image metadata extraction and CSV export to book scraping workflow#2
Draft
Add image metadata extraction and CSV export to book scraping workflow#2
Conversation
Co-authored-by: calculuscalculus <120034106+calculuscalculus@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Añade al flujo de scraping de libros una funcionalidad que analice las imágenes descargadas (portadas, gráficos, etc.), extraiga sus metadatos (tamaño, formato, resolución) y genere un archivo CSV con los resultados para cada libro.
Add image metadata extraction and CSV export to book scraping workflow
Aug 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR enhances the existing Wolfram Mathematica book scraping functionality to automatically analyze downloaded images and generate comprehensive metadata reports in CSV format.
Problem
The current book scraping workflow from Internet Archive captures page screenshots and exports them as PDFs, but lacks any analysis of the image properties or metadata tracking. Users had no visibility into:
Solution
New Image Metadata Extraction Function
Added
extractImageMetadata[image_]that extracts comprehensive metadata from Mathematica Image objects:Enhanced Main Scraping Function
Modified the existing
func[lista_]to:metadataListcollection variableCSV Output
The system now generates
book_images_metadata.csvcontaining:Key Features
Example Output
After processing a book, users will see:
The CSV file provides structured data for quality analysis, troubleshooting, and reporting on the scraping process.
Testing
The implementation has been verified to:
This enhancement provides valuable insights into the scraping process while maintaining full backward compatibility with existing workflows.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.