Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: making dynamic tile size calculation per tile format: jpeg/png (MAPCO-2758) #52

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

ronenkapelian
Copy link
Contributor

@ronenkapelian ronenkapelian commented Jan 15, 2023

Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore
  • Removing Hard-Coded option of calculate based on jpeg estimated size

  • Making dynamic cacl according layer's tiles output format

  • Now should provide configuration of PNG + JPEG single tile size

@ronenkapelian ronenkapelian self-assigned this Jan 15, 2023
@ronenkapelian ronenkapelian changed the title feat: making dynamic tile size calculation per tile format: jpeg/png feat: making dynamic tile size calculation per tile format: jpeg/png (MAPCO-2758) Jan 15, 2023
private getTileEstimatedSize(tileOutputFormat: TileOutputFormat): number {
let tileEstimatedSize;
if (tileOutputFormat === TileOutputFormat.JPEG) {
tileEstimatedSize = this.config.get<number>('storageEstimation.jpegTileEstimatedSizeInBytes');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interface bitch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done b-yatch

Copy link
Collaborator

@AnguIar AnguIar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHY?

@AnguIar
Copy link
Collaborator

AnguIar commented Jan 17, 2023

💯 🥇

@ronenkapelian ronenkapelian merged commit e553d4b into master Jan 17, 2023
@ronenkapelian ronenkapelian deleted the support-image-format-size-estimation branch January 17, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants