Skip to content

Homogenize maps - #91

Merged
PaulWessel merged 10 commits into
mainfrom
Homogenize-maps
Oct 15, 2023
Merged

PaulWessel merged 10 commits into
mainfrom
Homogenize-maps

Conversation

@Esteban82

@Esteban82 Esteban82 commented Oct 14, 2023 •

Copy link
Copy Markdown
Member

See #88 for details.

I homogenize the scripts. I made some minors modifications for the previous scripts and I made a generic script for the rest.
I notice that the WDMAM map has different colors. It seems that now uses a different CPT.

The only map lacking is day-night. I can adapt the ex 52 from gallery or just make the day version with the generic script (that's why I added WIP).

Is it possible that the figures are bigger (in KB)? Why is that? The dimensions are the same. What should I do? Use an smaller width, like 10 cm?

@Esteban82 Esteban82 added the documentation Improvements or additions to documentation label Oct 14, 2023
@Esteban82 Esteban82 self-assigned this Oct 14, 2023
@Esteban82 Esteban82 changed the title Homogenize maps WIP Homogenize maps Oct 14, 2023
@github-actions

Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions ✨

Compression reduced images by 31.2%, saving 1.90 MB.

Filename Before After Improvement Visual comparison
docs/_static/GMT_earth_age.png 106.26 KB 72.83 KB -31.5% View diff
docs/_static/GMT_earth_faa.jpg 888.30 KB 598.80 KB -32.6% View diff
docs/_static/GMT_earth_gebcosi.jpg 815.89 KB 585.82 KB -28.2% View diff
docs/_static/GMT_earth_geoid.jpg 515.38 KB 352.37 KB -31.6% View diff
docs/_static/GMT_earth_mag4km.jpg 1.14 MB 772.98 KB -34.0% View diff
docs/_static/GMT_earth_mask.png 49.60 KB 36.92 KB -25.6% View diff
docs/_static/GMT_earth_relief.jpg 768.96 KB 554.35 KB -27.9% View diff
docs/_static/GMT_earth_vgg.jpg 699.63 KB 528.52 KB -24.5% View diff
docs/_static/GMT_earth_wdmam.jpg 1.20 MB 790.09 KB -35.5% View diff

5 images did not require optimisation.

Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions.

@Esteban82

Copy link
Copy Markdown
Member Author

Is it possible that the figures are bigger (in KB)? Why is that? The dimensions are the same. What should I do? Use an smaller width, like 10 cm?

Now most of maps are smaller thanks to the bot.

@github-actions

Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions ✨

Compression reduced images by 15%, saving 204.37 KB.

Filename Before After Improvement Visual comparison
docs/_static/GMT_earth_daynight.jpg 576.38 KB 390.55 KB -32.2% View diff
docs/_static/GMT_earth_wdmam.jpg 790.09 KB 771.55 KB -2.3% View diff

12 images did not require optimisation.

Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions.

@Esteban82 Esteban82 changed the title WIP Homogenize maps Homogenize maps Oct 14, 2023
@Esteban82

Copy link
Copy Markdown
Member Author

I add the maps for day-night.

BTW, It seems that the bot re-compress GMT_earth_wdmam.jpg.

@seisman

seisman commented Oct 14, 2023

Copy link
Copy Markdown
Member

Some images are still above 500 KB. Please note that all these images will be shown on the front page of the Remote Dataset sites. It means visiting the page need to download more than 5 MB images.

So the smaller these images, the better.

@PaulWessel

Copy link
Copy Markdown
Contributor

I guess this makes sense - I never worry about bandwidth but obviously that is not the case for most.

@Esteban82

Copy link
Copy Markdown
Member Author

Ok. I will try with to get smaller figures. Which should be the size for each figure?

@github-actions

Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions ✨

Compression reduced images by 31.2%, saving 592.24 KB.

Filename Before After Improvement Visual comparison
docs/_static/GMT_earth_daynight.jpg 144.12 KB 100.90 KB -30.0% View diff
docs/_static/GMT_earth_faa.jpg 256.78 KB 172.71 KB -32.7% View diff
docs/_static/GMT_earth_gebcosi.jpg 243.15 KB 174.13 KB -28.4% View diff
docs/_static/GMT_earth_geoid.jpg 173.10 KB 116.95 KB -32.4% View diff
docs/_static/GMT_earth_mag4km.jpg 332.87 KB 221.29 KB -33.5% View diff
docs/_static/GMT_earth_relief.jpg 228.77 KB 164.28 KB -28.2% View diff
docs/_static/GMT_earth_vgg.jpg 187.31 KB 140.59 KB -24.9% View diff
docs/_static/GMT_earth_wdmam.jpg 333.83 KB 216.84 KB -35.0% View diff

6 images did not require optimisation.

Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions.

@Esteban82

Copy link
Copy Markdown
Member Author

I set the map width to 7.5 cm (instead of 15 cm) for most of the figures. I didn't do it for the maps with legends (age and mask).

The total size (after compression) is 1.38 MB for the 10 maps.

@seisman

seisman commented Oct 15, 2023

Copy link
Copy Markdown
Member

@PaulWessel
PaulWessel merged commit 7d5dd0f into main Oct 15, 2023
@PaulWessel
PaulWessel deleted the Homogenize-maps branch October 15, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants