libvips / nip2

A spreadsheet-like GUI for libvips.
https://libvips.github.io/libvips/
GNU General Public License v2.0
360 stars 13 forks source link

Not able to load simple jpg's on WIN 10 #76

Open bdrichards opened 5 years ago

bdrichards commented 5 years ago

As shown in image below, NIP2 will not load any images on WIN 10. Using most current install. Why are these jpgs not readable? They perfectly in every other app, they are small 256x256 pixel "tiles" that I want to "join" them (no blending necessary)

nip2_2019-03-07_9-49-43

jcupitt commented 5 years ago

Hello @bdrichards,

That's odd, it should work. I'll test tonight, if I can get my kids off the PC.

bdrichards commented 5 years ago

Thanks, My WIN 10 SurfaceBook runs just fine, but it doesn't have the umphhh to handle the join operation. The system that refuses to recognize the JPG's is a dell Precision 7720 ("mobile workstation") with 64Gb RAM, a RadeonPro WX 7100 graphics card, and 1Tb SSD. Could there be graphics driver issues? What about administrative rights, or lack thereof, interfering? I have set the properties for NIP2 to "Run as Administrator"

jcupitt commented 5 years ago

I tried and it's working fine for me. Could you try loading one of the examples? File / Open examples, then 1_point_mosaic, then 1_point_mosaic.ws.

I don't think a graphics driver would break jpg loading, so I'd rule that out.

It doesn't need admin rights -- you can install and run as an ordinary user.

Some other piece of software on your PC might be clashing with it. I would try making a new user and running it there. Also check and maybe reset your PATH.

bdrichards commented 5 years ago

The example images also could not be read with the example workspace. Also, I think I remember that VIPS itself couldn't find images from a command prompt test. Sooo, does that hint at a "path" issue? See the image below, the thumbnails are blank: np2-1pt_mosaic

jcupitt commented 5 years ago

Try hovering the mouse over one of the red boxes, you should see an error message in tooltip. What’s the message?

On Fri, 8 Mar 2019 at 19:10, bdrichards notifications@github.com wrote:

The example images also could not be read with the example workspace. Also, I think I remember that VIPS itself couldn't find images from a command prompt test. Sooo, does that hint at a "path" issue? See the image below, the thumbnails are blank: [image: np2-1pt_mosaic] https://user-images.githubusercontent.com/18133188/54049881-aae9f200-4192-11e9-9b7c-b842b5e9e592.jpg

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/libvips/nip2/issues/76#issuecomment-471041751, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjc690gDEj4Na7IEYrEl1acOLrncs36ks5vUrW4gaJpZM4bjxof .

bdrichards commented 5 years ago

Here is the message, also, I was mistaken, using the "arrayjoin" command directly from a vips command prompt is successful (I just have hundreds of images to join in dozens of rows...)..... NIP2-message-2019-03-08_11-37-19

bdrichards commented 5 years ago

In order to move forward, I uninstalled and installed a previous version (8.6.0) and images load OK. Now, it's time to test with the 30,000 jpg folder of images!!!

jcupitt commented 5 years ago

Ouch, 30,000!

Is this a regular grid of images? I'd do it at the command-line, and in a couple of stages.

Windows can't do more than 2000 files at once, so I'd write a tiny batch script and join up rows 1-10, 11-20, etc. as a set of temporary strip images, then in a second pass join the strips together to make the final output.

bdrichards commented 5 years ago

Yes, a regular grid (that's why I think it should be straightforward task to "recombine" them into the original image)! The folder of image "tiles" is basically the bottom of a tile pyramid ("deep zoom format") and we need to reconstruct the original image (our colleague that created the tile pyramid from the original image has passed away suddenly/unexpectedly and left no hint of where the original large images are - if they even still exist). Now, you say I should get 2000 files at a time? Ha! I can only manage to get Nip2 to process around 200 successfully at a time - any more than that and the program exits/closes/"stopsworking". How does one create the command-line to process a folder (or subfolder) of images? I tried to accomplish that with the VIPS command line and, finding no documentation about how to provide wildcard image paths, tried the following command line versions (this should be straightforward, but how does one specify the folder of images?): vips-command

jcupitt commented 5 years ago

Oh dear, I'm sorry to hear about your colleague.

The original win command-line is pretty bad. PowerShell is much better, but I don't know it well, unfortunately.

In linux, you'd do something like:

vips arrayjoin "$(echo *.png)" joined.tif --across 22

If you zip up the images and put them on dropbox, I could join then for you, if you like.

bdrichards commented 5 years ago

Thanks for your generous offer! I have to see if my college's dropbox account has enough space for that! But we may have to take you up on that offer, at least to show "proof-of-concept" ALSO, good news, the powershell command for a a wildcard list of images functions as below: vipsarrayjoin

Thank you for the suggestion!! (notice the change of "echo" to "dir"). HOWEVER, the dir command returns a list collated incorrectly for what is needed: filename "0-10.jpg" collates BEFORE "0-2.jpg" - yikes, soooooooo, I had to use an advanced renaming utility and add padding to the digits. HOWEVER, again, this increases the size of the name of the file and that limit lowers the number of images that can be processed. Maybe Windows VIPS can handle 1000's images, but the command line still has limited number of characters, so the length of the individual filenames impacts how many rows of images that can be "tiled together" at a time..... Thanks again for the suggestion(s) and offer for assistance. Any suggestions on how to overcome the limit on the number of images that get processed? As stated above, I think we are hitting the limit of the command line processor in reality....