lovasoa / dezoomify

Dezoomify is a web application to download zoomable images from museum websites, image galleries, and map viewers. Many different zoomable image technologies are supported.
https://dezoomify.ophir.dev
GNU General Public License v2.0
663 stars 73 forks source link

[Duplicate] Help for downloading images from Motic Digital Slides #108

Closed atultiwari closed 7 years ago

atultiwari commented 7 years ago

Hi,

This is a repeat question of my previous question with same query. Since that time issue was marked closed, I am in a dilemma since last 7 days, whether my query posted there got noticed or not. So I am asking the same here.

Thank you for the trick you provided in earlier post. It did work in some of the cases.

However in many of the cases there was no image shown, despite I see the progress bar for downloading and in some cases images load but not able to save them in Firefox. I have also set gfx.max-alloc-size value to 2000000000.

e.g. Image is loading but can't save (tileHandler.ashx?Id=19087)- http://ophir.alwaysdata.net/dezoomify/dezoomify.html#http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19087&imageId=-1&tierIndex=0&tileLevel=1&tilePositionX={{X}}&tilePositionY={{Y}}&contentType=image/jpeg&isCropped=1

Image is not at all loading (tileHandler.ashx?Id=19110) - http://ophir.alwaysdata.net/dezoomify/dezoomify.html#http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=1&tilePositionX={{X}}&tilePositionY={{Y}}&contentType=image/jpeg&isCropped=1

Can you please help me again to find a way to download these. I am a medical student, with none to little knowledge in programming. But if by doing some customization to your dezoomify script, I can download mentioned images, I am willing to learn that too. If customization is required, please provide me proper guidance on what/where/how to modify it?

Thanks again for this wonderful script. Sorry, if you had already read my comment, and I unnecessarily created new post.

Regards, Atul

lovasoa commented 7 years ago

For very large images, unfortunately, all the browsers hang, and there is nothing zoomify can do.

But for cases like yours, you can use this small script of mine: https://gist.github.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e

You have to have access to a shell, with wget and imagemagick installed.

atultiwari commented 7 years ago

Thanks @lovasoa for your prompt reply. I have access to Windows 10 and MacOS X laptop. It would be my very first attempt to use any such script. I know, it's out of context question, but can you please tell me, how can I make use of your script through my laptop.

I mean will I have to install Linux or can it be used directly from Windows 10 / MacOS - command prompt/powershell/something like that?

What else will I have to learn prior to use your script.

Edit - I know you have already mentioned - shell, wget & imagemagick. But, can these be used in my laptop?

Sorry for the vague questions. Thanks Regards

lovasoa commented 7 years ago

If your mac is recent, the easiest is to work on MacOS. Install brew, than run the following in a terminal

Install dependencies

brew install imagemagick

brew install wget

Download my script

wget https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw/9b7db00799a4e5860997ae902346fb10784271cd/dezoom.sh

Make it executable

chmod +x dezoom.sh

Download your image

./dezoom.sh 10 10 "http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=1&tilePositionX=%X&tilePositionY=%Y&contentType=image/jpeg&isCropped=1"

The first two parameters are the width and height (in number of tiles) of the image, the third is the URL of the image, with the x position replaced by %X and the Y position by %Y

lovasoa commented 7 years ago

With the parameters set as in the above example, it gives the following image: result

the image is saved as result.jpg in the current working directory (your home directory by default)

atultiwari commented 7 years ago

Thank you very much @lovasoa for detailed instructions and demo. My mac is recent. Although I would desperately like to try the mentioned method instantly, it's 1:45 am IST here. I will certainly try it by evening (after my hospital hours) and post my progress.

atultiwari commented 7 years ago

I couldn't resist to try it out. I replicated each and every step you mentioned and everything worked fine, except downloading and saving the image. I am pasting the whole script result here (including download and install part of scripts, in case if I missed anything) But as much I can think of for some reasons, image was not downloaded, so I made some mistake in that step only (which is the last one), but I couldn't find out where did I do wrong?

I have uploaded the whole steps and results on this gist. The error part I have attached in this comment also.

Also you have mentioned

The first two parameters are the width and height (in number of tiles) of the image, the third is the URL of the image, with the x position replaced by %X and the Y position by %Y

I didn't properly understand it (I thought I will learn by some hit and try), means how the width and height of 10 & 10 determined, what will happen if I change the values. Am I supposed to use some values in place of %X & %Y.

Atuls-MacBook-Pro:~ Atul$ chmod +x dezoom.sh
Atuls-MacBook-Pro:~ Atul$ ./dezoom.sh 10 10 "http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=1&tilePositionX=%X&tilePositionY=%Y&contentType=image/jpeg&isCropped=1"
mktemp: illegal option -- -
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix 
Downloading... 100%    
Tiles added.
convert: unable to open image `/tile1_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_1.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_2.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_3.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_4.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_5.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_6.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_7.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_8.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_9.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile1_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile2_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile3_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile4_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile5_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile6_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile7_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile8_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile9_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: unable to open image `/tile10_10.jpg': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
montage: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504.
montage: missing an image filename `result.jpg' @ error/montage.c/MontageImageCommand/1793.
Tiles successfully assembled in 'result.jpg'

Although last line says Tiles successfully assembled in 'result.jpg', but I couldn't file the mentioned jpg file.

Thanks again for your help :)

lovasoa commented 7 years ago

I didn't properly understand it (I thought I will learn by some hit and try), means how the width and height of 10 & 10 determined, what will happen if I change the values. Am I supposed to use some values in place of %X & %Y.

You have to know the number of tiles in your image, horizontally and vertically. If the numbers are too large, download will fail, if they are too small, the image will be truncated.

You are not supposed to replace %X and %Y. They are the equivalent of {{X}} and {{Y}} in dezoomify.

atultiwari commented 7 years ago

Again sorry for the lame question, but how can I know the number to tiles? Another question is - I followed the same procedure you mentioned (10 10), so there should be at least an image as you have posted in you next comment (It's not there in my case)

lovasoa commented 7 years ago

It was not working because mktemp works differently on mac and linux.

I updated my script for it to work on mac. Download it again (wget -O dezoom.sh "https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw/master/dezoom.sh") and launch it again.

lovasoa commented 7 years ago

Whoops, sorry, wrong URL

atultiwari commented 7 years ago

Atuls-MacBook-Pro:~ Atul$ wget -O dezoom.sh "https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw/master/dezoom.sh" --2016-12-06 02:22:10-- https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw/master/dezoom.sh Resolving gist.githubusercontent.com... 151.101.100.133 Connecting to gist.githubusercontent.com|151.101.100.133|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2016-12-06 02:22:10 ERROR 404: Not Found.

lovasoa commented 7 years ago

The correct URL: https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw

So type: wget -O dezoom.sh "https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw"

lovasoa commented 7 years ago

Again sorry for the lame question, but how can I know the number to tiles?

One solution is to find it by trial and error. Another is to open the zoomable image in your browser, open the network inspector of your browser, zoom and scroll to the bottom down of the image, and see what is the last loaded tile.

atultiwari commented 7 years ago

Thank you very much for solving my issue with so much patience. This time it download and created the result image file. Although terminal showed some error lines, I don't know if it's significant or not -


Atuls-MacBook-Pro:~ Atul$ ./dezoom.sh 10 10 "http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=1&tilePositionX=%X&tilePositionY=%Y&contentType=image/jpeg&isCropped=1"
Downloading... 100%    
Tiles added.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile1_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile2_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile3_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile4_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile5_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile6_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile7_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile8_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile9_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.8ArIo6QU/tile10_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.
Tiles successfully assembled in 'result.jpg'
`
lovasoa commented 7 years ago

What does the result look like ?

atultiwari commented 7 years ago

result

Right now I am trying to find out what does network shows on zooming in to bottom right of the image.

lovasoa commented 7 years ago

nice

atultiwari commented 7 years ago

Its all because of your help, I could never have done this by myself. Thanks.

atultiwari commented 7 years ago

Following are some of the links shown in the end of Network inspector -

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=0&tilePositionX=186&tilePositionY=104&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=0&tilePositionX=185&tilePositionY=105&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=0&tilePositionX=186&tilePositionY=103&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=0&tilePositionX=189&tilePositionY=103&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=0&tilePositionX=187&tilePositionY=103&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=0&tilePositionX=188&tilePositionY=103&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=1&tilePositionX=93&tilePositionY=51&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=1&tilePositionX=94&tilePositionY=51&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=2&tilePositionX=46&tilePositionY=25&contentType=image/jpeg&isCropped=1

http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=0&tilePositionX=188&tilePositionY=105&contentType=image/jpeg&isCropped=1

What I could figure out from this is max X=189, max Y=105. But then again , how should I use it?

lovasoa commented 7 years ago

What I could figure out from this is max X=189, max Y=105. But then again , how should I use it?

./dezoom.sh 189 105 "http://122.160.116.48/DSStore/code/tileHandler.ashx?Id=19110&imageId=-1&tierIndex=0&tileLevel=1&tilePositionX=%X&tilePositionY=%Y&contentType=image/jpeg&isCropped=1"

atultiwari commented 7 years ago

Ohh.. silly me. Now I got it. It appears to be a large image (so far only 4% downloaded). But now I get your point. Now I can sleep peacefully for 2 hours (3 am IST here). Thank you very very much for your continuous help. Good night.

Edit - I do plan to intend to learn some basics about bash scripting and the procedure you helped to follow, since now I am using it, but can only do this when I will get some free time.

atultiwari commented 7 years ago

Unfortunately it's stuck at 23% since long time. Will retry in evening and get back to you. thanks

atultiwari commented 7 years ago

I tried 3 times again (downloaded 100%) and failed. I have uploaded the error log on gist here. Basically the error I get is as following with different tile numbers -

convert: Empty input file `/var/folders/hw/jgsyw4_j28v5r129z_c5ryc00000gn/T/tmp.JOeHUMo7/tile95_1.jpg' @ error/jpeg.c/JPEGErrorHandler/322.
convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3258.

But, how can this be happening, as for the same image I myself had seen the X & Y values in network inspector.

If you are comfortable, can you provide me any email-id, where I can privately share my access details for the site, so that you can have a better look the issue.

Thanks.

atultiwari commented 7 years ago

I did get a result image with following specification -

screen shot 2016-12-06 at 10 37 34 am

While opening the result file it looked like (even though result file size if huge, I was unable to zoom the downloaded image)-

screen shot 2016-12-06 at 10 36 04 am

While the original slide on website look like following -

screen shot 2016-12-06 at 10 37 10 am
lovasoa commented 7 years ago

The problem is that some tiles didn't load (the server gave an empty answer), and when assembling the total image, these tiles are simply ignored (whereas they should be replaced by blank tiles, or we should try again to load them. I will work on this as soon as I have time.

lovasoa commented 7 years ago

I updated the script, and gave it a real repository.

https://github.com/lovasoa/dezoom.sh

I am going to close this issue. If you need further help, you can open a new issue on this new repository.