Large Middle Earth queries
-
@alkexr I can take care of those. NP.
-
Something I have noticed when trying to change image in the JPEG format.
Why does it save a file as a JPG when editting with Paint.net... and how is that different from a JPEG file. Furthermore, how are they different and how do I convert one from the other?
Very confusing.
-
@hepps Here ya go: http://lmgtfy.com/?q=jpeg+vs+jpg
-
@redrum Ok. But why does a map break when you replace one with the other?
And how do I change the format name?
-
@hepps Lol. Didn't enjoy my video?
In theory, for maps it shouldn't matter and I believe we should support .png, .jpg, and .jpeg for images. I'd have to look at the code to see if its only accepting certain image types.
For .jpg and .jpeg, you should be able to just rename the extension back and forth and it shouldn't have any negative impact. Assuming you are on windows, you just have to enable the property to show the file extensions then you can change them as you please: http://www.thewindowsclub.com/show-file-extensions-in-windows
PS. It appears the only place that specifies only ".jpeg" and not ".jpg" is "smallMap.jpeg".
-
@redrum Yes that is the only place it breaks maps.
But for the life of me I can't seem to change the file extension.
-
@hepps Lol. Did you go to the link I posted? If not if you uploaded it here, I'll rename and then upload it back up
Sometimes its just too much work to teach a man to fish...PS. That should probably be a bug report and allow .jpg for smallMap images.
-
@redrum That's why I eat beef.
-
@hepps Teach a man to slaughter cattle then...
-
@redrum Even when I open the file in Paint and choose JPEG... it still reverts the image back to a JPG.
God this is frustrating.
-

This is the image.
After some reading it appears JPEG is an old file extension. Why is the smallMap still using this exclusively?
-
I fugured it out. You can convert a JPG into a JPEG by saving over the original JPEG image.
But it was all for not since the intended outcome was far less than desirable.
Here is what I was hoping to do....

Here is what happens when you place an image with details in the smallMap....

Since the fill colour for territory owner ship has zero opacity... it simply over writes the image. Thereby making it impossible to dress up the small map.
-
@hepps Sounds like someone wants a new feature request...
I don't think there is any reasoning behind only supporting .jpeg and not .jpg for smallMap. Should put a bug report in for that and it should be easy to fix.
-
@redrum said in Large Middle Earth queries:
@hepps Sounds like someone wants a new feature request...
I was just trying to explain what I was doing. I don't really thing the mini map is much of a priority. I was just testing whether or not I could dress it up.
I don't think there is any reasoning behind only supporting .jpeg and not .jpg for smallMap. Should put a bug report in for that and it should be easy to fix.
Sounds good. I think its warranted since it happens often.
-
@redrum Personally, I don't like the idea of supporting redundant extensions. I'd advice, when stuff is redundant, choosing and supporting only one, either JPG or JPEG only.
Of course, the best solution would be supporting only PNG and changing all minimap in the repository to PNG, but I guess not feasibly worthwhile.
I see that the problem is that some utilities oblige you to save in "jpg", not "jpeg". GIMP allows either. -
@cernel I can open either with the software to maipulate the image. Problem is saving them.
-
So, to summarize my advice is:
1st best) Supporting only PNG and mass changing repository to PNG.
2nd best) Adding support for PNG, while keeping a deprecated support for JPEG (but not JPG).
In any case, I'm not a fan of supporting like both JPEG and JPG, in the moment no real difference.
-
@hepps Here is the PR to allow .jpg and .png for small maps: https://github.com/triplea-game/triplea/pull/3452
-
@redrum GAM
-
@hepps If you were going to define say a property in map.properties for the small map transparency what would you like that to look like? Like a decimal from 0.0 (transparent) to 1.0 (opaque)? Any other small map properties that would be of use?
0.3 alpha transparency

Regular (1.0)

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login