Converting VERY large PSB files to tiles

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
halvor
Posts: 4
Joined: 2011-01-21T08:33:33-07:00
Authentication code: 8675308

Converting VERY large PSB files to tiles

Post by halvor »

Hi

I work with Gigapixel-photgraphy, which means that I work with VERY large files. I have tried to split up my PSB files, with original sizes between 2 and 30 gb, to smaller tiles. So that I easier can open them in Photoshop. But I run in to different problems each time.

I have used the following command: convert -limit memory 5000mb -limit map 7000mb -crop 10%x100% +repage tiles%.psb
(I have 12 GB of memory)

This is what happens: 1: The .psb output files are corrupt, or at least photoshop doesn't want read them.
2: I end up getting files that varies between five times and 1/10th of the size of the orginal image.

I've also tried to convert the .psb-files into tif, but no program I've tried will read the output tif-files. This could be a size problem (I believe Photoshop has a limit of 4 GB for tif-files).
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Converting VERY large PSB files to tiles

Post by magick »

Post a URL to a couple of your PSB image files. We need to download them and reproduce the problem before we can help further.
halvor
Posts: 4
Joined: 2011-01-21T08:33:33-07:00
Authentication code: 8675308

Re: Converting VERY large PSB files to tiles

Post by halvor »

Hi

Here is the url:

http://ekeberg.wwp.no/IMtest1.psb

It is only one of the files, since it takes forever to upload files this big. I hope it will help you to get some answers for me.
Thanks for taking the time to help me out.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Converting VERY large PSB files to tiles

Post by magick »

We get 'ERROR 404: Not Found.' when trying to download http://ekeberg.wwp.no/IMtest1.psb.
halvor
Posts: 4
Joined: 2011-01-21T08:33:33-07:00
Authentication code: 8675308

Re: Converting VERY large PSB files to tiles

Post by halvor »

Sorry we had an apache redirect that handled the "_" differently than supposed to. I changed the filename, so now it should work:
http://ekeberg.wwp.no/imtest.psb
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Converting VERY large PSB files to tiles

Post by magick »

We can reproduce the problem you reported. We will look toward a patch to support the conversion. PSD / PSB is a difficult format to support so we anticipate it will take weeks and / or months before we come up with a proper patch.
mwillig
Posts: 7
Joined: 2011-01-21T10:58:45-07:00
Authentication code: 8675308

Re: Converting VERY large PSB files to tiles

Post by mwillig »

Hi,
as you can see in viewtopic.php?f=3&t=15733 I have a similar problem as you with large psb files. Do you have the same error message in Adobe Photshop: Adobe Photoshop CS 5 says "Could not complete yor request because the file is not compatable with this version of Photoshop."(respectively in German as I have a german version "Der Vorgang konnt nicht ausgeführt werden, weil diese Datei nicht mit dieser Version von Photoshop kompatibel ist.")?
Can you check your psb file with psdparse --> How many pixel rows/columns are there? 345600 rows x 1737 cols (600 millions pixel) are not working for me but 250560 rows x 7342(1800 millions pixel) (both files have more than 4 GB file size) is openable without a problem? --> it seems like a problem in maximum row number?

Have you tried to create smaller tiles (less than 300.000 pixel rows ? )
mwillig
Posts: 7
Joined: 2011-01-21T10:58:45-07:00
Authentication code: 8675308

Re: Converting VERY large PSB files to tiles

Post by mwillig »

I found http://help.adobe.com/en_US/photoshop/c ... 777ca.html The Large Document Format (PSB) supports documents up to 300,000 pixels in any dimension. --> its not a bug from imagemagick its a sensless feature from Adobe
halvor
Posts: 4
Joined: 2011-01-21T08:33:33-07:00
Authentication code: 8675308

Re: Converting VERY large PSB files to tiles

Post by halvor »

mwillig wrote:Hi,
as you can see in viewtopic.php?f=3&t=15733 I have a similar problem as you with large psb files. Do you have the same error message in Adobe Photshop: Adobe Photoshop CS 5 says "Could not complete yor request because the file is not compatable with this version of Photoshop."(respectively in German as I have a german version "Der Vorgang konnt nicht ausgeführt werden, weil diese Datei nicht mit dieser Version von Photoshop kompatibel ist.")?
Can you check your psb file with psdparse --> How many pixel rows/columns are there? 345600 rows x 1737 cols (600 millions pixel) are not working for me but 250560 rows x 7342(1800 millions pixel) (both files have more than 4 GB file size) is openable without a problem? --> it seems like a problem in maximum row number?

Have you tried to create smaller tiles (less than 300.000 pixel rows ? )
I have no problem opening the file in Photoshop. The reason I want to tile the image first, is to increase load speed and make it a bit more managable to work with. So, the original file works in Photoshop, but the tiles that ImageMagick outputs doesn't work.
mwillig
Posts: 7
Joined: 2011-01-21T10:58:45-07:00
Authentication code: 8675308

Re: Converting VERY large PSB files to tiles

Post by mwillig »

You have written: "The .psb output files are corrupt, or at least photoshop doesn't want read them." which error message do you get?
deweydb
Posts: 1
Joined: 2012-11-02T22:23:48-07:00
Authentication code: 67789

Re: Converting VERY large PSB files to tiles

Post by deweydb »

Hello, i am having a similar problem did this bug ever get resolved?
Post Reply