Domas Mituzas
8aabcc03d1
Be less anal about entry points, class definitions do no harm to anyone, defined() is expensive
2006-01-14 11:04:04 +00:00
Brion Vibber
266d41f165
* Added wfDie() wrapper, and some manual die(-1), to force the return code
...
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec
* s~ +$~~
2006-01-07 13:09:30 +00:00
Brion Vibber
7039d9bdd7
* Reduce fractions in display of exif exposure time
2005-11-29 07:47:26 +00:00
Brion Vibber
baed3966b0
* (bug 2111) Collapsable exif metadata table, clean up display
...
List of non-collapsing fields is in [[MediaWiki:Metadata-fields]].
Intro paragraph is in [[MediaWiki:Metadata-help]].
2005-11-28 23:56:35 +00:00
Ævar Arnfjörð Bjarmason
9115dabec8
* Internal reworking of code
...
* Use $wgContLang->lc() rather than strtolower()
2005-11-26 22:47:37 +00:00
Ævar Arnfjörð Bjarmason
805e8fca6b
* Duck warnings when fed an invalid file
2005-10-06 16:39:00 +00:00
Ævar Arnfjörð Bjarmason
38d603f275
* Using wfDebugLog() to log to our own log (exif)
2005-09-13 17:00:55 +00:00
Ævar Arnfjörð Bjarmason
d74425daea
* Removed the 1024 byte limit on ASCII tags, not in accordance with the spec
2005-07-22 20:57:15 +00:00
Ævar Arnfjörð Bjarmason
b928d7f505
* No longer displaying ResolutionUnit at all
...
* Support for [XY]Resolution
2005-07-22 00:55:54 +00:00
Ævar Arnfjörð Bjarmason
6f8b5da585
* Documentation
2005-07-21 23:07:58 +00:00
Ævar Arnfjörð Bjarmason
316a6e4375
* Fixed bug: Bah, fucking automatic typecasting
2005-07-21 18:26:40 +00:00
Ævar Arnfjörð Bjarmason
35782b6618
* Support SubjectDistance
...
* Reworked FormatExif::msg() to take an argument
* Broke off number formatting into FormatExif::formatNum()
2005-07-21 16:37:39 +00:00
Ævar Arnfjörð Bjarmason
9b7263ecc0
* Fixed a bug where tags would be wrongly rejected ( === => == )
...
* Added break; to the switch statement in FormatExif::getFormattedData() which fixed numerous bugs
* Using @ to hide errors in Exif::isRational()
* Support formatting of FocalPlaneResolutionUnit
* Added debug info to Exif::validate()
* Fixed a debug error in Exif::isShort()
2005-07-21 00:59:08 +00:00
Ævar Arnfjörð Bjarmason
e642c5b21b
* Exif::validate(): Using $this->debug() rather than wfDebug()
2005-07-20 21:20:45 +00:00
Ævar Arnfjörð Bjarmason
819ce776f9
* Completely reworked how the Exif class works, it now works as a standalone
...
class rather than being dependand on the code in Image.php
* Made a new class FormatExif that takes care of formatting an exif array
(previously built into the Exif class)
2005-07-17 19:21:08 +00:00
Ævar Arnfjörð Bjarmason
2c4ec5c770
* Using the same message for GPSLatitudeRef and GPSDestLatitudeRef;
...
GPSLongitudeRef and GPSDestLongitudeRef; GPSSpeedRef and
GPSDestDistanceRef; GPSTrackRef,GPSImgDirectionRef and GPSDestBearingRef
2005-05-30 19:54:54 +00:00
Ævar Arnfjörð Bjarmason
027537d624
* Added a TODO note to isASCII()
2005-05-21 07:23:04 +00:00
Ævar Arnfjörð Bjarmason
138a7ed36e
* isASCII() now only accepts \x0a\x20-\x7e and strings <= 1024 bytes
...
* isRational() and isSrational() improved to most definitely not accept a
non-faction value.
* Put all the debugging stufff into a debugging function
2005-05-13 10:38:14 +00:00
Ævar Arnfjörð Bjarmason
d57db920c3
* Not returning true for whitespace ASCII tags (I found quite a few in my tests)
...
* isRational and isSrational now include a check to make sure they're being fed
a fraction, spewed errors otherwise.
* (S)rational numbers are now converted to intergers/floats
2005-05-10 02:15:16 +00:00
Ævar Arnfjörð Bjarmason
063b4fe03a
* Switching is_numeric() in isByte(), isShort() and isLong() out for sprintf()
...
per wegges suggestion because:
1. $in can't be a floating point number
2. When typecast php ignores any non-integers after the first row of integers
3. A regular expression would be slower and insanely complex
* Insert kind comments about php and remarks about how much I appriciate its existance here*
2005-05-09 16:14:00 +00:00
Ævar Arnfjörð Bjarmason
f837a55e83
* Improved Exif::validate() debug output
...
* format() now returns the input value unformatted if it doesn't know what to
do with it
2005-05-09 14:09:58 +00:00
Ævar Arnfjörð Bjarmason
cb6013b45e
* Deprecated $mValidExif and its constructor makeValidExifTags(), its function
...
of stripping UNDEFINED tags has been moved to the isUndefined() function
* Deprecated getExif(), makeFlatExifTags() accesses $mExif directly now
2005-05-09 11:54:56 +00:00
Ævar Arnfjörð Bjarmason
0016b5f390
* Improved the debug output of the type checking functions
2005-05-09 11:28:30 +00:00
Ævar Arnfjörð Bjarmason
c95cd90c3e
* Documented the change to extractTags(), might be a php bug
...
* Added debug statements
* Added breakpoints to the switch statement
* Added support for wikifying the software tag
2005-05-09 09:25:01 +00:00
Brion Vibber
cca0833da4
Fix up spacing, indentation to match the codebase standards.
2005-05-09 00:12:54 +00:00
Brion Vibber
1b669c86a4
Declare the EXIF type constants only once, when the script is read in,
...
instead of every time an Exif object is created. Constants cannot be
redefined and this produces a flurry of notice messages.
Also renamed the very generic names, as constants are a global namespace.
2005-05-08 23:57:19 +00:00
Brion Vibber
1872ab1632
Clean up makeFlatExifTags; a simple foreach loop is a little easier on the
...
eyes than the array_walk bit, and seems to explode and die less on PHP 5.
2005-05-08 23:48:40 +00:00
Ævar Arnfjörð Bjarmason
1d00dbd01c
* Added support for formatting of the DateTime tag inside format()
2005-05-08 16:06:50 +00:00
Ævar Arnfjörð Bjarmason
e293b51d0f
* Added license information
...
* Fixed a bug in validate() that had to do with type casting, SHORT.','.LONG
would previously never have been evaluated as its value "3,4" was typecast
to 3 which matched SHORT.
* Added a new function, format(), to format the values of tags according to
the Exif 2.2 specification.
2005-05-08 16:04:44 +00:00
Ævar Arnfjörð Bjarmason
6d232a655c
* To the tune of "America, Fuck Yeah" from "Team America: World Police"
...
"Type checking, FUCK YEAH! Coming again, to save the mother fucking day yeah" !
(we now have typechecking of Exif tags)
2005-05-08 07:06:04 +00:00
Ævar Arnfjörð Bjarmason
ad0fa329f0
* A new file with Exif functions
2005-05-07 12:52:54 +00:00