Page 16 of 27

Re: Journeyometer 2: Rivendell is live!

Posted: Sat Aug 02, 2014 11:55 am
by Valarian
I'm unable to get the correct file sizes using Adobe Reader X (or FoxIT PDF Reader) and Adobe photoshop (or Paint). Can we have dimensions (width:height), rather than a quality measure (pixels per inch). The instructions in the OP are meaningless to me as I don't know which software is being used to extract the graphic or to resize it, or even the machine used (Windows / Mac). I could do with some step by step instructions.

For the Eriador map on a Windows 7 machine, I'm getting:
(Abode Reader X)
1) Select Edit, Take a Snapshot
2) Right-click, Select All (scroll to ensure all selected)
3) Right-click, Copy selected Graphic
4) Open Paint and paste graphic
This gives me a 1373x1716 graphic (72ppi - screen quality)
using Photoshop instead and upping the quality to 200ppi gives 3814x4767

(FoxIT PDF Reader)
1) Select Snapshot
2) Right-click, select all
3) Right-click, copy selected graphic
4) Open Paint and paste graphic
This gives me a 1364x1705 graphic (72ppi - screen quality)
using Photoshop instead and upping the quality to 200ppi gives 3789x4736

Setting the draw grid on the website, these file dimensions look far too big. About 3x too big by the look of the grid.
Image

Re: Journeyometer 2: Rivendell is live!

Posted: Sat Aug 02, 2014 12:25 pm
by Valarian
Tried a load of the different quality variants in Photoshop. Unless I've got the correct image size to begin with, this isn't going to work.

(Abode Reader)
1) Open Eriador LM Map
2) Set zoom to 100%
3) Select Edit, Snapshot Tool
4) right-click, select all (scroll to ensure all selected)
5) right-click, copy selected

This gives me a starting image of 935x1169 (72ppi)
100ppi = 1299x1623 (way too small)
120ppi = 1559x1947 (too small)
125ppi = 1623x2028 (too small)
128ppi = 1662x2077 (too small)
130ppi = 1688x2109 (slightly too big - closest I've got)
132ppi = 1714x2142 (too big)
140ppi = 1818x2271 (too big)
150ppi = 1948x2435 (too big)
200ppi = 2598x3245 (way too big)

Re: Journeyometer 2: Rivendell is live!

Posted: Sat Aug 02, 2014 12:35 pm
by Glorelendil
Dimensions should be 1700 * 2125.

Oh, strange...you're saying that 1688x2109 is too big?

Re: Journeyometer 2: Rivendell is live!

Posted: Sun Aug 03, 2014 4:15 am
by Glorelendil
UPDATE: If you haven't gotten the image conversion right yet, stop trying. I'm making progress on being able to import the PDFs directly. Stay tuned.

Re: Journeyometer 2: Rivendell is live!

Posted: Mon Aug 04, 2014 5:17 pm
by Glorelendil
Another update: Ignore last update. Sort of.

I did get the PDFs to render directly, and computed hex size based on the size of the PDF (using hard coded values for each region's map). But ran into 3 problems:
1) Performance SUCKED. Rendering PDFs takes way, way, way more horsepower than render JPGs.
2) It only works in Firefox. (The javascript library I was using to render PDFs is from Mozilla...)
3) For reasons I don't understand it broke the lightbox for viewing images.

But Good News: in the process of doing that I realized that I don't need to know the actual dimensions of your .jpg. If I store proportional values rather than fixed values everything else can scale to whatever resolution map you create. So you still have to convert the PDFs to JPGs but it should not matter what your final size is.

So keep staying tuned...I'll get this polished up and deploy it.

Re: Journeyometer 2: Rivendell is live!

Posted: Mon Aug 04, 2014 8:54 pm
by Glorelendil
Ok, latest version is live. Try it now with your JPGs that weren't scaling correctly before. And if you don't like the scale (too big or too small) try re-converting the PDF to whatever scale you like. As long as you're using the official maps and not changing the aspect ratio it should work now.

A few other bug fixes and UI improvements, too.

Re: Journeyometer 2: Rivendell is live!

Posted: Wed Aug 06, 2014 8:57 am
by Robin Smallburrow
OK so that's working now with the scales, thanks Elfcrusher:

BUT

the map is working for the purposes of the Index (click on Rivendell, takes you to the right location etc.), but not for the purposes of calculating Journeys - no date comes up on the hex (I think we had this similar problem with the Wilderland map too!), when you Shift Click a lot of hexes you only get the 'Discontiguous Path' message.

Robin S.

Re: Journeyometer 2: Rivendell is live!

Posted: Wed Aug 06, 2014 12:04 pm
by Glorelendil
Robin Smallburrow wrote:OK so that's working now with the scales, thanks Elfcrusher:

BUT

the map is working for the purposes of the Index (click on Rivendell, takes you to the right location etc.), but not for the purposes of calculating Journeys - no date comes up on the hex (I think we had this similar problem with the Wilderland map too!), when you Shift Click a lot of hexes you only get the 'Discontiguous Path' message.

Robin S.
Could you check it again? I disabled Journey computation when just one cell is clicked (so that it wouldn't keep jumping to the Journey tab when you were trying to use the new image database feature). And the "Discontiguous" message should only appear if, well, the cells you select are discontiguous. But I just double checked to make sure I didn't introduce any bugs and it's working for me.

If an otherwise valid-looking journey is causing errors, a screen shot would be great to help me debug.

Re: Journeyometer 2: Rivendell is live!

Posted: Wed Aug 06, 2014 12:26 pm
by Hermes Serpent
I just tested it travelling from Fornost Erain to Bree and it worked fine. Now if I can just get the issue with the original map with crop marks fixed I'd be fine (I can use my modified map at 55% and cropped slightly to work but not the original)

Re: Journeyometer 2: Rivendell is live!

Posted: Sat Aug 09, 2014 9:55 am
by Robin Smallburrow
All good Journey working now with the dates!!

Once again, thanks heaps Elfcrusher!!

Now I just would like my South map done some time in the future!!

Robin S.