question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--web-optimized option creates image with incorrect bounds

See original GitHub issue

not sure if this is related to #123 but when using the --web-optimized option the output has a larger bounding box than the input.

tile.tiff tile.tiff.zip

rio cogeo create --cog-profile deflate --dtype float32 --overview-resampling bilinear --web-optimized --resampling bilinear tile.tiff 1.tiff

2

rio cogeo create --cog-profile deflate --dtype float32 --overview-resampling bilinear --resampling bilinear tile.tiff 2.tiff

1

The input tile.tiff has the bounds of the second screenshot, so the first command with --web-optimized creates an incorrect output.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewharveycommented, May 19, 2020

hi @vincentsarago

Thanks for looking into this, you’re right when I zoom right in I can see the precision issue and I now understand why it’s needing to fill in these other tiles when using web-optimized.

0reactions
vincentsaragocommented, May 19, 2020

@andrewharvey 👋 ☝️

Read more comments on GitHub >

github_iconTop Results From Across the Web

rio-cogeo/cogeo.py at main · cogeotiff/rio-cogeo - GitHub
Cloud Optimized GeoTIFF creation and validation plugin for rasterio - rio-cogeo/cogeo.py at main · cogeotiff/rio-cogeo.
Read more >
How To Optimize Images for Web Without Losing Quality
Are images killing the load speed of your website? Learn how to optimize images for web (PNGs and JPGs) without losing quality, when...
Read more >
How To Optimize Images for Web and Performance - Kinsta
Images are often the #1 element responsible for slow page load times. Learn how to optimize images for web and your site.
Read more >
Web-Optimized Image Delivery | Adobe Experience Manager
To enable web-optimized image delivery, edit a page template and simply activate the option Enable Web Optimized Images within the design ...
Read more >
Best Image Sizes and How to Save Images For the Web (2022)
Unoptimized images slow down websites. Slow websites = bad user experience, lower chances to rank in Google searches and ultimately less ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found