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

Rendering error #2097

Open
SashaPro22 opened this issue Aug 19, 2023 · 14 comments
Open

Rendering error #2097

SashaPro22 opened this issue Aug 19, 2023 · 14 comments

Comments

@SashaPro22
Copy link

Hi! Can me help pls error:
2023-08-19 15:21:33 E An error has occurred. This may be a bug. Please let us know!
See http://docs.overviewer.org/en/latest/index.html#help

This is the error that occurred:
Traceback (most recent call last):
File "./overviewer.py", line 653, in
ret = main()
File "./overviewer.py", line 505, in main
tex.generate()
File "/root/Minecraft-Overviewer/overviewer_core/textures.py", line 134, in generate
self.biome_grass_texture = self.build_block(self.load_image_texture("assets/minecraft/textures/block/grass_block_top.png"), self.load_image_texture("assets/minecraft/textures/block/grass_block_side_overlay.png"))
File "/root/Minecraft-Overviewer/overviewer_core/textures.py", line 578, in build_block
top = self.transform_image_top(top)
File "/root/Minecraft-Overviewer/overviewer_core/textures.py", line 474, in transform_image_top
img = img.resize((17, 17), Image.ANTIALIAS)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

@CounterPillow
Copy link
Member

no, I've already told you on IRC that the project is unmaintained.

@SashaPro22
Copy link
Author

I really need this card and I count on the support of knowledgeable people

no, I've already told you on IRC that the project is unmaintained.

@dafvid
Copy link
Contributor

dafvid commented Aug 20, 2023

Hi
Had the same issue. Pillow 10 has removed ANTIALIAS. Downgrade to Pillow 9.5.0 fixes this.

@SashaPro22
Copy link
Author

Hi Had the same issue. Pillow 10 has removed ANTIALIAS. Downgrade to Pillow 9.5.0 fixes this.

Where will it need to be changed? in overviewer.py ?

@dafvid
Copy link
Contributor

dafvid commented Aug 20, 2023

Hi Had the same issue. Pillow 10 has removed ANTIALIAS. Downgrade to Pillow 9.5.0 fixes this.

Where will it need to be changed? in overviewer.py ?

Try pip install Pillow==9.5.0

@dafvid
Copy link
Contributor

dafvid commented Aug 20, 2023

You also need to build overviewer with the Pillow 9.5.0 header files if you're building from source

@Gregory-AM
Copy link

@SashaPro22, you can use the successor version of The Minecraft Overviewer. It fixes Antialiasing issues, and renders 1.20 worlds.

@SashaPro22
Copy link
Author

@SashaPro22, you can use the successor version of The Minecraft Overviewer. It fixes Antialiasing issues, and renders 1.20 worlds.

How to run this version in linux?

@SashaPro22
Copy link
Author

You also need to build overviewer with the Pillow 9.5.0 header files if you're building from source

I did it on your advice and one mistake went away, but the second one didn't:
This is the error that occurred:
Traceback (most recent call last):
File "./overviewer.py", line 653, in
ret = main()
File "./overviewer.py", line 505, in main
tex.generate()
File "/home/mup/overviewer_core/textures.py", line 142, in generate
tex = texgen(self, blockid, data)
File "/home/mup/overviewer_core/textures.py", line 860, in func_wrapper
return func(texobj, blockid, data)
File "/home/mup/overviewer_core/textures.py", line 4072, in repeater
ImageDraw.Draw(torch).rectangle((0,24,10,15),outline=(0,0,0,0),fill=(0,0,0,0))
File "/usr/local/lib/python3.8/dist-packages/PIL/ImageDraw.py", line 294, in rectangle
self.draw.draw_rectangle(xy, fill, 1)
ValueError: y1 must be greater than or equal to y0

@Gregory-AM
Copy link

Gregory-AM commented Aug 21, 2023

@SashaPro22
Haha 😆
I remember when I first started working on Overviewer and this was the first issue.

Replace that line with this one.

ImageDraw.Draw(torch).rectangle((0,15,10,24),outline=(0,0,0,0),fill=(0,0,0,0))

@Gregory-AM
Copy link

@SashaPro22, you can use the successor version of The Minecraft Overviewer. It fixes Antialiasing issues, and renders 1.20 worlds.

How to run this version in linux?

You have to build it from source.

@Gregory-AM
Copy link

The entire point is to update Overviewer not go backwards.

So don't use older versions of Pillow.

All the issues you're experiencing are fixed in the repo I created for Overviewer.

You'll just need to build it for your OS.

@SashaPro22
Copy link
Author

The entire point is to update Overviewer not go backwards.

So don't use older versions of Pillow.

All the issues you're experiencing are fixed in the repo I created for Overviewer.

You'll just need to build it for your OS.

Will it be possible to install your map overviewer and run it as normal without an exe file?

@Gregory-AM
Copy link

Gregory-AM commented Aug 21, 2023

There's a Commit on my GitHub that's not implemented yet with information on building for Linux.

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

No branches or pull requests

4 participants