Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maps at 1080p resoultion #2

Open
kingargyle opened this issue Nov 9, 2017 · 6 comments
Open

Maps at 1080p resoultion #2

kingargyle opened this issue Nov 9, 2017 · 6 comments

Comments

@kingargyle
Copy link
Contributor

I managed to get one of the maps to display within OBS Studio. It would be nice to have another set of images besides the Half Res and Full Versions. These could be at an HD scale (something that can display at 1080p resolution. It wouldn't necessarily need to include the Objective Text, but keeping deployment zones would be nice.

Below is a sample of an image resized to 987 x 1070. 1080 is about the max height that could be done and still keep aspect ratio and legability. I might be able to run them through ImageMagick to do some of the manipulation. Anyways I figured I'd toss the suggestion out. It would also be nice to have just the maps with a transparent background as well, but again I might be able to run them through ImageMagick to achieve this.

image

@kingargyle
Copy link
Contributor Author

Experimenting around with ImageMagick on windows seems to give a decent resolution on the map with the following command:

magick inputfile.jpg -adaptive-resize 28x29%! output.jpg

I tried some cropping but the position that the Text and Mission Objectives varies too much to use a standard cropping... I haven't tried any other techniques.

@kingargyle
Copy link
Contributor Author

kingargyle commented Nov 9, 2017

To strip out the black background and make it transparent.

magick inputfile.jpg -transparent black -adaptive-resize 28x29%\!output.png

The images could then be run through pngquant or tinypng to further reduce the overall filesize and not loose resolution.

@nickv2002
Copy link
Owner

nickv2002 commented Nov 9, 2017

I have Pixelmator (a Photoshop-like program for macOS) files that have separate layers for all the different parts of every map so it wouldn't be difficult to export them as PNG files with the background and rule layers disabled. (Note that on most maps the black background is used to hide tile edges so it would still be advisable to put any transparent maps over a black background.)

We could use ImageMagick for resizing everything to fit inside a 1080p area. But we've got the resolution & detail to just do it at 4K so why not use that size (for future proofing)?

The real issue is that I don't have a lot of time at the moment because the free time I do have to put toward this project is currently devoted to getting the HotE tiles scanned and maps built. So @kingargyle you're welcome to take charge of this for now and I can send you Pixelmator source files. Alternatively, we can put off the 1080p/4K versions until after HotE.

@kingargyle
Copy link
Contributor Author

I unfortunately don't have a Mac. I do have a Linux box, which allows me to run use Gimp. What you might want to do, is create another Git repository that has those Pixelmator source files in them, that way, it isn't necessarily part of the main project. If I can use Gimp to read and work with the files, I can take a stab at removing the items that aren't necessary.

As for why I can't use the 4K images, it is mainly due to trying to keep things as memory efficient as possible. OBS Studio is pretty resource intensive as it is, and even if something is resized to the lower resolution in an Image source, it will still take the amount of memory to store the 4K size. It is better to optimize the sources for different use cases. We can just generate the 4K images, and then use ImageMagick and PNGQuant to optimize them further. The resizing options could be done as part of a build script.

If you can put the PixelMator source files somewhere I or the community can access them, then I can see if it works with Gimp and maybe provide a little more automation when producing the final files. Honestly all we should have to produce is the 4K version, then ImageMagick the other sizes we need or want to support.

@nickv2002
Copy link
Owner

nickv2002 commented Nov 9, 2017

@kingargyle Google Drive works better than GitHub for these large files, so I'll upload the relevant Pixelmator and other files to a Google Drive folder. Send me your email (perhaps via FFG forums since there's no GitHub DMs) and will invite you.

Same goes for anyone who wants to help with the image editing, by the way. Lots of tiles to edit!

@kingargyle
Copy link
Contributor Author

@nickv2002 I had some time tonight to see if I could open the PXM files in GIMP unfortunately I can't open that format. I'm looking into some other options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants