Closed Bug 344660 Opened 19 years ago Closed 18 years ago

Show frame count for animated GIFs in Image Properties

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ventnor.bugzilla, Assigned: florian)

References

Details

Attachments

(1 file, 3 obsolete files)

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
Attached patch patch v1 (obsolete) — Splinter Review
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 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+
Attached patch patch v2 (obsolete) — Splinter Review
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 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+
Flags: in-testsuite?
Attached patch patch v3 (obsolete) — Splinter Review
Attachment #260643 - Attachment is obsolete: true
Attached patch full patch v3Splinter Review
The metadata.properties part was missing in the previous attachment.
Attachment #261323 - Attachment is obsolete: true
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
Depends on: 367655
Flags: in-testsuite?
This useful feature was introduced way back when. Why was it removed?
(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.

Attachment

General

Created:
Updated:
Size: