Gilles Dubuc
cf539bb316
Apply EXIF rotation to X-Content-Dimensions
...
Also adds integration tests for a few formats.
Bug: T150741
Change-Id: I686f7ef42457faf5bc688e60e6ce09a8550ca5aa
2017-05-16 15:57:00 +02:00
Kunal Mehta
6e9b4f0e9c
Convert all array() syntax to []
...
Per wikitech-l consensus:
https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html
Notes:
* Disabled CallTimePassByReference due to false positives (T127163)
Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Kunal Mehta
54a912c5e9
XMP: Use structured logging instead of wfDebugLog
...
Co-Authored-By: Brian Wolff <bawolff+wn@gmail.com>
Change-Id: I486192a718576a4d1e585ffb390e297b14dde087
2015-05-23 22:49:09 +00:00
csteipp
15ce698afc
SECURITY: Don't allow entities in XMP with HHVM
...
Test for, and refuse to parse, XMP chunks with a doctype declaration
when parsing XMP under HHVM.
Bug: T85848
Change-Id: Iea4feb077ee85a35509a920153daaa9321ee69f3
2015-04-01 09:56:43 -07:00
Aaron Schulz
6921770414
Updated some try-catch statements: MWException -> Exception
...
Change-Id: I76601a86e30f4984e3b1a8c8ec5ef5a0f652433a
2015-01-09 17:20:22 -08:00
umherirrender
21e0c1c533
Correct variable names in @param to match method declarations
...
Some @param have a typo in the variable name,
some @param's were in wrong order.
Change-Id: Ie25806831027112b398f6f4a909c59147ac3a5fa
2014-08-13 21:48:28 +02:00
umherirrender
dd8921c9d9
Cleanup some docs (includes/[m-r])
...
- Swap "$variable type" to "type $variable"
- Added missing types
- Fixed spacing inside docs
- Makes beginning of @param/@return/@var/@throws in capital
- Changed some types to match the more common spelling
Change-Id: I8ebfbcea0e2ae2670553822acedde49c1aa7e98d
2014-07-24 19:43:25 +02:00
Siebrand Mazeland
37bc4ec3dd
Update documentation for media related classes
...
Change-Id: I7a9c8d59f88c68dc3835cb8a18f22a77cd7890fc
2013-12-06 23:03:06 +01:00
Siebrand Mazeland
370101602c
Break long lines in media related classes
...
Change-Id: I94653b4cde14f75180dae795d1fdaa1b073ec1d1
2013-12-05 12:33:18 +01:00
Siebrand Mazeland
c7dbaa0f58
Update formatting for media related classes
...
Change-Id: Iaa81af5b65a650222fa65bf8c368e4f1ec3ce9c0
2013-12-05 11:05:05 +01:00
umherirrender
db24b10ca8
Use lowercase key words
...
Change-Id: I57569b7082a0decc8128ecadd8ec5d1a5c327673
2013-11-23 15:56:42 +01:00
umherirrender
9f14ecf829
Added space after switch/Removed spaces after unset
...
While at it, added/removed some other spaces in the same files
Change-Id: I84d8001aa123a008807ad5eb76f396aed7c899a4
2013-04-26 16:42:31 +02:00
umherirrender
ee31d37821
Fixed spacing in context/installer/media/templates/upload folder
...
Added spaces before if, foreach
Added some braces for one line statements
Change-Id: I9761be9fa47adc3554852a97b19792b4648466ad
2013-04-21 06:22:06 +00:00
umherirrender
8764b3aa7c
Remove spaces in function signature
...
Change-Id: I45aea7a7af88cd913b2f485913620a8af0ab2fed
2013-03-18 20:44:43 +01:00
Tyler Anthony Romeo
4dcc7961df
Fixed @param tags to conform with Doxygen format.
...
Doxygen expects parameter types to come before the
parameter name in @param tags. Used a quick regex
to switch everything around where possible. This
only fixes cases where a primitve variable (or a
primitive followed by other types) is the variable
type. Other cases will need to be fixed manually.
Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13
2013-03-11 13:15:01 -04:00
jenkins-bot
073a675adf
Merge "fix some spacing"
2013-03-07 17:13:27 +00:00
umherirrender
d63121016d
fix some spacing
...
Added/removed spaces around logical/arithmetic operator
Reduced multiple empty lines to one empty line
Removed wrong tabs before comments at end of line
Removed too many spaces in assigments
Change-Id: I2bba4e72f9b5f88c53324d7b70e6042f1aad8f6b
2013-03-07 17:53:21 +01:00
umherirrender
e43dc272bd
Fix align of block comments
...
Change-Id: I88ea33a125a71671886b49e4ebf4c1d0a1cce572
2013-03-07 17:27:38 +01:00
umherirrender
9d6575af15
The static declaration must come after the visibility declaration
...
From phpcs
Change-Id: Ieab0207f965630eda113abdc0259aa2eddcf5ca7
2013-01-26 21:03:52 +01:00
umherirrender
c66d868e6d
Remove a bunch of trailing spaces and unneeded newlines
...
Change-Id: I166a171c196f4c2c75886be12f913ffa9a4a35ad
2012-10-19 22:10:42 +02:00
Siebrand Mazeland
d4b046a893
Update docs for return and exception info
...
* Removed some inline tabs in the process.
* IDE fixed some incorrect leading spaces, too.
Change-Id: Ic9303eff6db4424ac3f1fa2816839692b43e6190
2012-10-09 09:41:58 +00:00
Alexandre Emsenhuber
31003d22ea
Added missing GPLv2 headers in some places.
...
Also made file/class documentation more consistent.
Change-Id: I26a320bcddd4122ce423f536609d5794446d743e
2012-05-03 22:22:45 +02:00
Sam Reed
0a626db6e1
Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
...
Other documentation improvements
2012-02-09 19:29:36 +00:00
Sam Reed
85bbb0b080
Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
...
Other documentation improvements
2012-02-09 18:01:10 +00:00
Antoine Musso
fc6bc233be
Fix doxygen docs before REL1_19 branching
2012-02-01 20:53:38 +00:00
Brian Wolff
f9173cb902
Make sure that if we fail to read the App13 (iptc) block of a JPG file, that that doesn't block other metadata from being read. Also makes sure if more then one app13 block is in the file, they are all read, not just the last one that appears in the file (This required some changes to tests since before the intermediate value was just one value, now its an array of all such blocks)
2012-01-05 23:25:39 +00:00
Brian Wolff
b995e08cdf
follow-up r86169 - 2 minor issues found while writing unit tests
...
# Some really obscure Exif properties did not have the Exif byte order taken into account
and were being extracted with the bytes reversed (for example user comment when encoded as utf-16).
Not a major issue as these properties are very rare in practise, but certainly not a good thing.
( One would think php's exif support would take care of that, but no it does not...)
# Change the fallback encoding for Gif comments to be windows-1252 instead of iso 8859-1. More
to be consitent with jpg and iptc then anything else.
2011-08-21 17:16:57 +00:00
Sam Reed
4065e65d03
Even more documentation in various files
2011-05-29 14:24:27 +00:00
Sam Reed
296f3d3f4f
And even more documentation
2011-05-28 18:59:42 +00:00
Sam Reed
cb6817628d
Few style/whitespace/comment issues from r86169
2011-04-18 13:08:20 +00:00
Sam Reed
0bd50926ca
Remove some unused variables
...
Fix typo in wfDeprecated usage
Fix some more unreachable code
2011-04-16 11:17:14 +00:00
Brian Wolff
74f16767e7
Merge to trunk everything in img_metadata branch.
...
Hope I did this in an ok fashion. svn merge --re-integrate was giving me issues
so I just essentially over-wrote my working copy with the version at img_metadata.
2011-04-16 01:23:15 +00:00