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

Large .psb files #8

Open
slaymantis opened this issue Mar 1, 2017 · 9 comments
Open

Large .psb files #8

slaymantis opened this issue Mar 1, 2017 · 9 comments
Assignees
Labels

Comments

@slaymantis
Copy link

Hi

What is the largest we can go using this tool?
I have a 121 095 x 52 585 pixel image I am trying to convert
It seems to get stuck at level 4 of the zoom tiles

I tried smaller files and they work great

@VoidVolker
Copy link
Owner

Hi! It shall work for any image size. What is your OS and what commands you using?

@slaymantis
Copy link
Author

Hi - it works well with my images up to about 40 000 pixels. But the 121 000 pixels it just seems to get stuck on my one computer and the other computer says terminal has run out of memory.
The command I am using is
./magick-slicer.sh new_dubai_night_flat.psb -w 512 -e jpg

The machine specs are:
OSX el capitan 32gig ram i5 iMac
OSX sierra 16 gig ram i5 iMac
OSX el capitan 16gig ram i7 macbook pro

I haven't been able to render any of them with the large image (also left the i7 machine to run for 3 days but no luck - it just had one empty folder)

@VoidVolker
Copy link
Owner

VoidVolker commented Mar 8, 2017

I run script and found problem with defining image sizes from imagemagick - it require at last 2-3Gb RAM and more 50Gb on disk. Try to add option -v3 and check on what stage it stuck, I suspect there can be some error from imagemagick and it can stuck in loop with incorrect parameters.

@slaymantis
Copy link
Author

slaymantis commented Mar 8, 2017

Thanks
I see this error multiple time when I try run with or without defining the tilesize on the larger image (15GB image)
(no errors on the smaller images like 2GB image)

./magick-slicer.sh: line 665: let: imgLen = imgLen * 100 / zoomStep: division by 0 (error token is "p")

@VoidVolker
Copy link
Owner

VoidVolker commented Mar 8, 2017

Yes, I'm already found this error - looks like it produced by identify, because it can't identify image sizes correctly, because it require alot of disk space. I'll fix it when I'll have time in next few days. Thanks for bug report. If your image not secret - can you share it, please? I'll use it for tests on real image.

@VoidVolker VoidVolker self-assigned this Mar 8, 2017
@VoidVolker VoidVolker added the bug label Mar 8, 2017
@slaymantis
Copy link
Author

Thank you

The image is a client image and very very large 15GB- (I can get permission and watermark it though - do you have a private email so I can send you a link?)

Otherwise the image is easy to make in photoshop for testing?
Just take any image and scale it up to:
121095 x 52585 pixels
72dpi

and save it as a large format photoshop file .psb

Let me know if you need a link

@VoidVolker
Copy link
Owner

Yes, I'm already done this in photoshop for tests. You can contact me directly in gitter webchat

@srussking
Copy link

Just in case this happens to me again I wanted to mention that you can also get this error ( imgLen = imgLen * 100 / zoomStep: division by 0) if your image magick policy is set too low for the image you are trying to process. Increasing the memory limits as described here might help you. more info

@mklucz
Copy link

mklucz commented Oct 3, 2018

Hi, I was getting the following error
./magick-slicer.sh: line 665: let: imgLen = imgLen * 100 / zoomStep: division by 0 (error token is "zoomStep")
while trying to process a large image.
I fixed it by going to /etc/ImageMagick-6/policy.xml and changing the values in these two lines
<policy domain="resource" name="width" value="16KP"/>
<policy domain="resource" name="height" value="16KP"/>
to be greater than my image's size.
One may also need to increase allowed memory, it's in the same file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants