Closed atultiwari closed 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.
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
If your mac is recent, the easiest is to work on MacOS. Install brew, than run the following in a terminal
brew install imagemagick
brew install wget
wget https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw/9b7db00799a4e5860997ae902346fb10784271cd/dezoom.sh
chmod +x dezoom.sh
./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
With the parameters set as in the above example, it gives the following image:
the image is saved as result.jpg
in the current working directory (your home directory by default)
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.
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 :)
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.
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)
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.
Whoops, sorry, wrong URL
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.
The correct URL: https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw
So type: wget -O dezoom.sh "https://gist.githubusercontent.com/lovasoa/8a176cb1c1079ba6447bb71b83135d8e/raw"
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.
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'
`
What does the result look like ?
Right now I am trying to find out what does network shows on zooming in to bottom right of the image.
nice
Its all because of your help, I could never have done this by myself. Thanks.
Following are some of the links shown in the end of Network inspector -
What I could figure out from this is max X=189, max Y=105. But then again , how should I use it?
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"
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.
Unfortunately it's stuck at 23% since long time. Will retry in evening and get back to you. thanks
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.
I did get a result image with following specification -
While opening the result file it looked like (even though result file size if huge, I was unable to zoom the downloaded image)-
While the original slide on website look like following -
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.
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.
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