Closed
Bug 399346
Opened 18 years ago
Closed 17 years ago
Decide on .tiff or .tif
Categories
(Camino Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mark, Assigned: alqahira)
Details
(Keywords: fixed1.8.1.12)
Attachments
(4 files)
9.37 KB,
patch
|
mark
:
superreview+
|
Details | Diff | Splinter Review |
265.74 KB,
patch
|
mark
:
superreview+
|
Details | Diff | Splinter Review |
219.25 KB,
patch
|
Details | Diff | Splinter Review | |
218.48 KB,
patch
|
mark
:
superreview+
|
Details | Diff | Splinter Review |
We currently have some TIFF images with a .tiff extension, and some with a .tif extension. We should standardize on one. I prefer .tiff, but we've currently got more .tif files: on the trunk, there are now 24 .tiff files and 85 .tif files.
Assignee | ||
Comment 1•18 years ago
|
||
I prefer .tiff, too.
Comment 2•18 years ago
|
||
I also prefer .tiff. I think .tif is prevalent only because Photoshop (at least older versions) insists on defaulting to three-letter extensions.
Assignee | ||
Comment 3•18 years ago
|
||
When we do this--or some other renaming exercise--we should consider fixing historyicon.tif's name. It should really be named history_icon.tif[f] to be in sync with the other Bookmarks Manager collection icons.
Assignee | ||
Comment 4•18 years ago
|
||
Also fun, apparently the Downloads window toolbar icons are all specified in code with explicit "foo.tif" names, whereas in most of the rest of Camino, we just use the file's name.
Some of the main toolbar's images are also specified in such a manner (add_to_bookmark.tif, textBigger.tif, textSmaller.tif, newTab.tif, closeTab.tif, sendLink.tif, dl_manager.tif), so we'll have to fix them, too, when we do this.
Reporter | ||
Comment 5•18 years ago
|
||
We can do a patch to get the ".tif" (and ".tiff", if any) names out of string literals before or at the same time as the renaming.
Assignee | ||
Comment 6•18 years ago
|
||
What about ones referenced in nibs? Are they being referenced with the full filename (and how would one go about finding this out)?
Assignee | ||
Comment 7•17 years ago
|
||
This patch removes all the explicit mentions of filename extensions in code (coincidentally, they're all .tif).
The only other places that extensions are mentioned are the project file or the Info-FooPrefPane.plist files (do those latter need to be changed, too?).
Reporter | ||
Comment 8•17 years ago
|
||
Comment on attachment 295557 [details] [diff] [review]
Remove mentions of explicit extensions in code [checked in]
Leave the Info.plists alone. The system only looks for icons by appending the .icns extension. We can convert these to .icns files but they'll be a little larger. I do recall that TIFFs weren't always supported as CFBundleIconFiles, so you might want to check to see if the "get info" icons are correct on 10.3 and 10.4.
A grep for '\.tif' on the nibs should show you any occurrences of that string, even in binary files (you'll see "binary file keyedobjects.nib matches"). For true paranoia, convert the keyedobjects.nib files to xml1 before grepping:
find mozilla/camino -name keyedobjects.nib -exec plutil -convert xml1 {} \;
grep '\.tif' `find mozilla/camino -type f -name \*.nib`
This'll grep you through sparkle too, which you probably don't want, so you might want to be more restrictive and only look in resources and PreferencePanes.
I'd advise not using nibs once you've run them through plutil, so it might be best to do this experiment in a tree that you don't care about - maybe make a copy and work in there.
Attachment #295557 -
Flags: superreview?(mark) → superreview+
Assignee | ||
Comment 9•17 years ago
|
||
Comment on attachment 295557 [details] [diff] [review]
Remove mentions of explicit extensions in code [checked in]
Landed these code changes on the trunk and MOZILLA_1_8_BRANCH.
Attachment #295557 -
Attachment description: Remove mentions of explicit extensions in code → Remove mentions of explicit extensions in code [checked in]
Assignee | ||
Comment 10•17 years ago
|
||
I thought this would be a quiet weekend to finish this up, with no outstanding project patches to bitrot. Then bug 412126 came along. So, I'll bitrot myself. Or, maybe not.
This is the full cvs diff of the project, MainController and BookmarkManager (for the history_icon renaming, comment 3), and the removed and added images. The project diff includes the dom_json.xpt change from bug 412126. For reference, I'll also attach a trunk-project-only diff that shows the diff against the project with dom_json.xpt already in it.
And, for your further reviewing fun, I'll also attach a branch project diff, since that part obviously won't cross-commit.
In both cases, I've cleaned and then rebuilt and verified that everything I could think to open that had images in it still had the images.
Attachment #296783 -
Flags: superreview?(mark)
Assignee | ||
Comment 11•17 years ago
|
||
Maybe this isn't the most useful alternative diff?
Assignee | ||
Comment 12•17 years ago
|
||
Here's the branch project all by itself, since it's the only part of the full trunk patch that won't cross-commit.
Attachment #296785 -
Flags: superreview?(mark)
Reporter | ||
Comment 13•17 years ago
|
||
Comment on attachment 296783 [details] [diff] [review]
full trunk patch (includes dom_json.xpt from bug 412126)
I trust that the new files were added with -kb.
Attachment #296783 -
Flags: superreview?(mark) → superreview+
Reporter | ||
Updated•17 years ago
|
Attachment #296785 -
Flags: superreview?(mark) → superreview+
Assignee | ||
Comment 14•17 years ago
|
||
(In reply to comment #13)
> (From update of attachment 296783 [details] [diff] [review])
> I trust that the new files were added with -kb.
Your trust is not misplaced.
Camino has spoken; the decision is in: it's .tiff.
Checked in on the trunk and MOZILLA_1_8_BRANCH in advance of Camino 1.6b1. I do hope this is the first and only time in my life I will do a 24-minute commit.
So far, it looks like the timing went well as to produce no red boxen.
You need to log in
before you can comment on or make changes to this bug.
Description
•