Closed
Bug 344660
Opened 19 years ago
Closed 18 years ago
Show frame count for animated GIFs in Image Properties
Categories
(Firefox :: General, enhancement)
Firefox
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: ventnor.bugzilla, Assigned: florian)
References
Details
Attachments
(1 file, 3 obsolete files)
2.09 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060710 Firefox/2.0b1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060710 Firefox/2.0b1
I was thinking of another feature Firefox could use. The image properties in the Element properties window could show the total number of frames in the selected animated GIF/MNG.
Reproducible: Always
Assignee | ||
Comment 1•18 years ago
|
||
Currently we display:
Type: Image/xxx
With this patch, if the image isn't animated, we display:
Type: XXX Image
If the image is animated:
Type: Animated XXX Image (N frames)
If the mime type doesn't begin with 'image/',
Type: mimetype
Comment 2•18 years ago
|
||
Comment on attachment 260640 [details] [diff] [review]
patch v1
Not sure that the framecount is really neccessary. I would also suggest that the format be:
%s image
and
%S image (animated, %s frames)
for easier reading.
Attachment #260640 -
Flags: ui-review+
Assignee | ||
Comment 3•18 years ago
|
||
updated patch. Requesting review.
Assignee: nobody → f.qu
Attachment #260640 -
Attachment is obsolete: true
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #260643 -
Flags: review?(mano)
Comment 4•18 years ago
|
||
Comment on attachment 260643 [details] [diff] [review]
patch v2
>Index: browser/base/content/metaData.js
>===================================================================
>+ if (imageRe.test(imageType))
>+ {
just inline the regep, the brace should be on the same line with the condition.
>+ imageType = imageRe.exec(imageType)[1].toUpperCase();
>+ var frameCount = imageRequest.image.numFrames;
>+ if (frameCount > 1)
>+ imageType = gMetadataBundle.getFormattedString("animatedImageType", [imageType, frameCount]);
>+ else
>+ imageType = gMetadataBundle.getFormattedString("imageType", [imageType]);
please keep code lines no longer than 80 characters
r=mano otherwise.
Attachment #260643 -
Flags: review?(mano) → review+
Updated•18 years ago
|
Flags: in-testsuite?
Assignee | ||
Comment 5•18 years ago
|
||
Attachment #260643 -
Attachment is obsolete: true
Assignee | ||
Comment 6•18 years ago
|
||
The metadata.properties part was missing in the previous attachment.
Attachment #261323 -
Attachment is obsolete: true
Comment 7•18 years ago
|
||
mozilla/browser/base/content/metaData.js 1.15
mozilla/browser/locales/en-US/chrome/browser/metaData.properties 1.5
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Flags: in-testsuite?
This useful feature was introduced way back when. Why was it removed?
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to smeeze from comment #8)
> This useful feature was introduced way back when. Why was it removed?
I don't think it has been intentionally removed.
From looking at the source code history, it seems it got broken by http://hg.mozilla.org/mozilla-central/rev/f99cedbbc5f6 from bug 584841 comment 51.
If you think it should be re-added / fixed, would you mind filing a bug for it?
You need to log in
before you can comment on or make changes to this bug.
Description
•