| #
47b5aa0a |
| 06-May-2026 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #4624 from dokuwiki/mediasizes
fix EXIF-rotated images shown cropped in previews, closes #4482
|
| #
dd9e8e5e |
| 23-Apr-2026 |
Andreas Gohr <andi@splitbrain.org> |
fix EXIF-rotated images shown cropped in previews, closes #4482
JPEGs with EXIF orientation 5/6/7/8 were rendered cropped in the mediamanager detail view, the image diff view and the fullscreen deta
fix EXIF-rotated images shown cropped in previews, closes #4482
JPEGs with EXIF orientation 5/6/7/8 were rendered cropped in the mediamanager detail view, the image diff view and the fullscreen detail page: getimagesize() / JpegMeta report raw (rotation-unaware) pixel dimensions, and passing both w and h to fetch.php defaults to center-crop.
- Bump splitbrain/slika to 1.1, which ships ImageInfo: a rotation- aware, metadata-only dimension simulator mirroring Adapter's fluent API (autorotate/resize/crop). - Add fit=1 to fetch.php: when both w and h are given, route to media_resize_image() (bbox fit) instead of media_crop_image(). Token hashes only (id, w, h) so existing tokens stay valid. - Add MediaFile::getDisplayDimensions($w, $h, $crop) which delegates to ImageInfo and returns the dims fetch.php would produce. - Add Display::getDetailHtml() and retire media_preview() / the old media_image_preview_size() helper. media_tab_view and MediaDiff now share the Display-based renderer. - Rewrite tpl_img() (lib/tpl/*/detail.php) to use MediaFile dims + fit=1 URL; drops the manual ratio math. - Tests: MediaFileTest covers the dims math, DisplayTest covers the detail-view HTML (rotated dims, rev-vs-timestamp URL selection, structure), fetch_imagetoken gains a fit-token compat test. Fixture _test/data/media/wiki/exif-orient-6.jpg: 20x30 JPEG with EXIF orientation 6.
show more ...
|
| #
6734bb8c |
| 07-Apr-2026 |
Andreas Gohr <andi@splitbrain.org> |
SearchIndex: rewrite MetadataSearch to use Collection classes
Replace MetadataIndex usage in MetadataSearch with the new Collection/Index architecture. This completes the read-path migration so data
SearchIndex: rewrite MetadataSearch to use Collection classes
Replace MetadataIndex usage in MetadataSearch with the new Collection/Index architecture. This completes the read-path migration so data written by the Collection-based Indexer is read back correctly using TupleOps tuple format.
Generalize FrequencyCollectionSearch into CollectionSearch that works with any AbstractCollection type (Frequency, Lookup, Direct) and handles both split-by-length and non-split index layouts transparently. DirectCollection participates via resolveTokenFrequencies() which maps token RID = entity RID.
Key changes: - AbstractCollection gains isSplitByLength(), resolveTokenFrequencies(), getEntitiesWithData(), and groupToSuffix() with validation - Index groups are now int (0 = non-split, positive = token length) - CollectionSearch provides both addTerm()/execute() for fulltext and lookup() for metadata-style search (exact/wildcard/callback) - MetadataSearch delegates entirely to collection APIs - Shared filterPages() replaces duplicated page filtering logic - All callers updated from MetadataIndex to MetadataSearch - Tests moved to Search namespace with full coverage for new APIs
show more ...
|
| #
7f394dd6 |
| 05-Apr-2026 |
Andreas Gohr <andi@splitbrain.org> |
Merge branch 'master' into searchIndex-finish
* master: (55 commits) Translation update (pt-br) Bump phpseclib/phpseclib from 3.0.49 to 3.0.50 Update deleted files strict value comparison
Merge branch 'master' into searchIndex-finish
* master: (55 commits) Translation update (pt-br) Bump phpseclib/phpseclib from 3.0.49 to 3.0.50 Update deleted files strict value comparison in auth session check. fixes #4602 Translation update (pt-br) Translation update (pt-br) remove utf8_encode() from authad plugin todo checker action: ignore vendor updated rector and applied it removed another php 7.4 workaround removed an old PHP 5 workaround in HTTPClient remove checks for mbstring.func_overload removed php 8 polyfills ignore HTML validation issue with skipped headline levels declare PrefCookie constant visibility update slika which fixes another php 8.5 deprecation issue fix http tests fix destructuring false returns from changelog functions avoid using null as cache key Fix deprecation warning in UTF8/Conversion ...
show more ...
|
| #
093fe67e |
| 07-Mar-2026 |
Andreas Gohr <andi@splitbrain.org> |
updated rector and applied it
|
| #
9df9f0c8 |
| 27-Oct-2025 |
Andreas Gohr <gohr@cosmocode.de> |
Merge branch 'master' into searchIndex-finish
There were a lot of conflicts to resolve. Not all of them may have been resolved correctly...
* master: (1094 commits) Login accessibility improvemen
Merge branch 'master' into searchIndex-finish
There were a lot of conflicts to resolve. Not all of them may have been resolved correctly...
* master: (1094 commits) Login accessibility improvements Translation update (it) translation update translation update translation update translation update translation update translation update translation update translation update translation update translation update translation update translation update Remove HTML from strings based on title and tagline SECURITY: fix XSS vulnerability. fixes #4512 translation update Fix typos in usermanager English strings Replace hardcoded message by localized string set DOKU_INC in rector ...
show more ...
|
| #
0296c9b0 |
| 05-Jun-2025 |
Matt Perry <matt@mattperry.com> |
Add support for webp preview in the media manager
|
| #
b3894732 |
| 30-Oct-2024 |
splitbrain <86426+splitbrain@users.noreply.github.com> |
Rector and PHPCS fixes
|
| #
186263b2 |
| 01-May-2024 |
Damien Regad <dregad@mantisbt.org> |
Apply PSR-12 to media_nstree() function
|
| #
de301a35 |
| 01-May-2024 |
Damien Regad <dregad@mantisbt.org> |
Fix display of media manager namespace hierarchy
When the media manager is called with ns parameter set to a value higher than the last namespace defined in the wiki, the non-existing namespace is n
Fix display of media manager namespace hierarchy
When the media manager is called with ns parameter set to a value higher than the last namespace defined in the wiki, the non-existing namespace is not added to the hierarchy.
This behavior is not consistent with what happens when the namespace's name is lower. In this case, an entry is inserted in the tree at the appropriate location.
Fixed by appending the temporary namespace at the end of the tree if it was not inserted by the search loop.
Fixes #4276
show more ...
|
| #
9988e853 |
| 01-May-2024 |
Damien Regad <dregad@mantisbt.org> |
Fix Undefined array key warning
E_WARNING: Undefined array key 3 in ./inc/media.php(1700) E_WARNING: Trying to access array offset on value of type null in ./inc/media.php(1700)
This happens when t
Fix Undefined array key warning
E_WARNING: Undefined array key 3 in ./inc/media.php(1700) E_WARNING: Trying to access array offset on value of type null in ./inc/media.php(1700)
This happens when the media manager is called with ns parameter set to a value higher than the last namespace defined in the wiki.
Fixes #4276
show more ...
|
| #
7c5af60e |
| 14-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
Merge branch 'master' into patch-4
|
| #
6c16a3a9 |
| 14-Sep-2023 |
fiwswe <fiwswe@fwml.de> |
Use str_starts_with/str_ends_with
|
| #
ab240622 |
| 02-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
indentation fix in media.php
|
| #
d4f83172 |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: line breaks
|
| #
90fb952c |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: operator spacing
|
| #
26dfc232 |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Rector to rename print to echo calls
|
| #
7d34963b |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
coding style: control flow line breaks
|
| #
177d6836 |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
coding style: control flow whitespaces
|
| #
a19c9aa0 |
| 30-Aug-2023 |
Gerrit Uitslag <klapinklapin@gmail.com> |
recover comments in list
|
| #
dccd6b2b |
| 30-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
coding style: function call spacing
|
| #
ed823bcd |
| 30-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
codestyle adjustments: PHP constant casing
|
| #
d868eb89 |
| 30-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
codestyle adjustments: function declaration braces/spaces
|
| #
c1482d1c |
| 30-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
codestyle adjustments: function argument spacing
|
| #
24870174 |
| 29-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector fixes to the rest of inc
|