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

Fixed map image preview error #330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed map image preview error #330

wants to merge 1 commit into from

Conversation

itsul
Copy link
Contributor

@itsul itsul commented Jan 31, 2023

When using a Map Background image the overview Thumbnail is generating an error: "nagvis Map error: Implicit conversion from float 22.06451653463125235 to int loses precision" because the php function imagecopyresampled can only work with int. We fixed it by using the round() function in the calculation in the createThumbnail function.

When using a Map Background image the overview Thumbnail is generating an error: "nagvis Map error: Implicit conversion from float 22.06451653463125235 to int loses precision" because the php function imagecopyresampled can only work with int. We fixed it by using the round() function in the calculation in the createThumbnail function.
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.

None yet

1 participant