After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735992 - Add more resolutions/templates to the New file dialog of GIMP
Add more resolutions/templates to the New file dialog of GIMP
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Data
2.8.14
Other All
: Normal enhancement
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
: 772019 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-09-03 20:32 UTC by ve4ernik
Modified: 2017-06-17 00:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
templaterc (26.93 KB, text/plain)
2014-09-09 22:32 UTC, ve4ernik
Details
Reordered and fixed templaterc (26.09 KB, text/plain)
2016-09-16 10:41 UTC, Michael Natterer
Details

Description ve4ernik 2014-09-03 20:32:16 UTC
All it takes is to look at the following file https://en.wikipedia.org/wiki/File:Vector_Video_Standards2.svg and add all those resolutions to the GIMP using the naming convention "[width]x[height] (shorthand name for the resolution)", e.g. 640x480 (VGA).

I'm talking about the resolution templates available from File -> New -> Template.

It must be very easy to implement and it would be quite useful.

—sahwar
Comment 1 Michael Natterer 2014-09-03 22:26:21 UTC
I don't know if the list gets more usable if we make it so much longer,
but then I don't see why we should not have all these resolutions
either.

You can add to that list yourself via the Templates dialog, check
Windows -> Dockable Dialogs -> Templates. Then attach the resulting
templaterc from your GIMP config directory to this bug.
Comment 2 ve4ernik 2014-09-09 22:32:10 UTC
Created attachment 285778 [details]
templaterc

OK, here's the file (see the attached file below).

I also consulted with the following files/webpages: https://commons.wikimedia.org/wiki/File:Vector_Video_Standards4.svg, https://commons.wikimedia.org/wiki/File:Vector_Video_Standards5.svg, https://commons.wikimedia.org/wiki/File:Vector_Video_Standards6.svg, https://en.wikipedia.org/wiki/Graphics_display_resolution and http://fc06.deviantart.net/fs25/f/2008/034/a/b/ISO_paper_size_pixel_reference_by_sickfish.png.

I see a conflict between the PAL and NTSC resolutions of GIMP and the information from Wikipedia, so I leave to you the decision of whether the resolutions of PAL and NTSC should be changed in the GIMP.

I also changed the values of the following paper sizes to the ones I found on the Internet (feel free to correct me if I'm wrong):
A3 (300 ppi) = 3508x4961 *
A5 (300 ppi) = 1748x2480 *
A6 (300 ppi) = 1240x1748 *

I may have missed a few intermediary resolutions, check the Wikipedia page linked above and add them if I have missed them from the list.

I also think that it would be a sort of an overkill to add all paper sizes mentioned on the pages https://en.wikipedia.org/wiki/Paper_size and http://designerstoolbox.com/designresources/paper/ to the Templates of GIMP, but you may add them if you have too much spare time to waste on this job.

I also added the following web banner sizes to the list: http://designerstoolbox.com/designresources/banners/ & http://upload.wikimedia.org/wikipedia/commons/4/43/Standard_web_banner_ad_sizes.svg.

When can I expect to see this in the official GIMP distribution? Perhaps in the next release?

Thanks a lot for your feedback.

—sahwar
Comment 3 Michael Natterer 2014-09-13 20:57:15 UTC
Thanks, we'll review the list. An updated templaterc will be in 2.10.
Comment 4 Michael Natterer 2014-09-24 20:00:15 UTC
Comment on attachment 285778 [details]
templaterc

This file needs some work to be used in master:

- all templates need icons
- "stock-id" -> "icon-name"
- triple check all sizes
- sort reasonably
Comment 5 Klaus Staedtler 2016-06-22 19:00:11 UTC
I have already 'many' icons for the templates (both color and symbolical). Have  a look at icons proposed.

After my work on bug 759904 is finished ....  I can take care of these.

Regards

Klaus
Comment 6 Klaus Staedtler 2016-07-03 08:34:38 UTC
After a first look ...

the updated templaterc has a bias

many possible web-banners are included, all video-sizes are included, but what is with 

1. paper sizes e.g. http://www.cl.cam.ac.uk/~mgk25/iso-paper.html

2. mobile devices e.g. http://blog.fluidui.com/the-mobile-resolutions-to-be-aware-of-when-designing/

.... ?

Depending on view the list is either too long, or too short.

Also scrolling through an endless list might be boring.

Other solutions have a 2 factor selection. 1. categories (e.g. web, paper, video, business cards ....) and 2. the specific size
Comment 7 Klaus Staedtler 2016-07-03 13:13:59 UTC
(In reply to ve4ernik from comment #2)
> A3 (300 ppi) = 3508x4961 *

should be

3508x4960

also 

(GimpTemplate "A2 (300 ppi)"
    (width 4960)  not 4961 
    (height 7016)

have a look here http://www.papersizes.org/
Comment 8 Klaus Staedtler 2016-07-04 16:40:55 UTC
After reviewing the updated templaterc I've uploaded a shortened version. Only the most common video, screen and web-banner sizes are used there. Additionally I've added some business-cards and mobile-devices. (naturally all with different icons).

IMHO default templaterc is for beginners. Pro's have their own custom build templaterc.

If more templates should be used by default I strongly suggest to have a 2-way selection (like e.g. in inkscape, or scribus, or libreoffice, or photoshop, or ....)

All my contributions can be found here
https://git.gnome.org/browse/gimp/log/?h=icons-wip

after a review and a merge with master the bug can be closed IMHO.
Comment 9 Michael Natterer 2016-09-16 10:41:20 UTC
Created attachment 335691 [details]
Reordered and fixed templaterc

Argh, I missed Klaus' last comment about the updated templaterc in
the icons branch. I applied some fixes to the file that is attached
here, maybe they are useful anyway, something to merge with the file
on the branch, or entirely useless...

Anyway it's better than the previously attached templaterc so here it is.
Comment 10 ve4ernik 2016-09-16 16:09:49 UTC
(In reply to https://bugzilla.gnome.org/show_bug.cgi?id=735992#c6 and Klaus Staedtler's subsequent comments)

Yeah, there are discrepancies between the EXACT resolutions of many of the paper sizes (in pixels) depending on which information source you use as a reference. Rounding off those numbers is tricky since inches/cm (+dpi) don't translate well into EXACT "X x Y px" resolutions.

Other that that, I wholeheartedly agree that the GIMP should have a 2-way/2-factor template selection for the pre-installed resolutions, it's much better than having this HUGE list of resolutions in a single dropdown menu.

I say: let's have all those resolutions, but in the above-mentioned implementation (2 factor selection, etc.) -- it will make things much more organized and easy to use for everyone.

I also agree with https://bugzilla.gnome.org/show_bug.cgi?id=735992#c4 and with Klaus Staedtler's remark that "after a review and a merge with master the bug can be closed IMHO".
Comment 11 Michael Natterer 2016-09-16 16:45:57 UTC
What is a 2-was selection? Inkscape is mentioned above, but I just
see a large list of formats there...
Comment 12 ve4ernik 2016-09-16 17:13:54 UTC
(In reply to https://bugzilla.gnome.org/show_bug.cgi?id=735992#c11 )

"What is a 2-was selection?" (it's "2-way/2-factor", not "2-waS")

I think that Mr. Staedtler mentioned this:

"a 2 factor selection. 1. categories (e.g. web, paper, video, business cards ....) and 2. the specific size"

I think that this means that there will be 2 (or more) dropdown menus, one of them will be the categories (Web, Papersizes, Video sizes, Business cards, etc.) and after you select the category from the first dropdown menu, the second dropdown menu will list all relevant resolutions for the selected category. There could be a category called "ALL" in the first dropdown menu -- in case someone is crazy enough to scroll all the way to his favorite resolution without selecting a specific category ("ALL" could be a "meta-category" that includes all resolutions from all other categories).

This is just a guess though.
Comment 13 Michael Natterer 2016-09-27 09:13:06 UTC
*** Bug 772019 has been marked as a duplicate of this bug. ***
Comment 14 Jehan 2016-09-27 10:27:58 UTC
See the commit by Klaus for various new templates: https://git.gnome.org/browse/gimp/commit/?h=icons-wip&id=66e15ea73c89b911aab330fdab5e534349008274

The new templates are various business card (common?) formats, various smartphone formats (for background images?) of Apple and Samsung, many webbanner (common?) formats, common screen formats (HD 720p, 1080p, 4K, etc.)…

So what do we want to keep from this?

For my personal usage, I am all for the most common HD and 4K formats at least, since GIMP is also used a lot for computer publishing. Not so sure about more obscure screen formats. Maybe we want to get rid of the old formats while adding new ones? Who still create images for NTSC or PAL specifically?

Maybe the smartphone formats are acceptable for the same reason, though it names acutal brands and models, so I'm not so sure how acceptable this would be.

Not so sure about the web-banner formats though. Is there an actual common standard? I know that there are a whole branch of users who spend a lot of time making banners, but I wonder if such a long list is needed.

Last but not least, there is the plan to have plugin/extension management system. New templates could also be GIMP extensions, so we could propose extended lists for later installation while still keeping the default list short with only the most common formats.
Comment 15 Michael Schumacher 2016-09-27 11:36:37 UTC
BTW, a new branch should have been used for this - someone who gets the icons-wip branch checked out should be able to assume that only icons have been dealt with in there.
Comment 16 Jehan 2016-09-27 11:40:30 UTC
> BTW, a new branch should have been used for this - someone who gets the icons-wip branch checked out should be able to assume that only icons have been dealt with in there.

I agree, but what done is done. Klaus was learning and it's not like we have a feature workflow that well calibrated.
Comment 17 Alexandre Prokoudine 2017-06-17 00:05:43 UTC
Cleaned up the patch by Klaus and merged it to master. Will be available in 2.9.6.