WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 R24 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Fehler beim Resize im Media-Upload / Fix for a Bug in the Media Manager's Image
  • Print
Pages: [1]   Go Down

Author Topic: Fehler beim Resize im Media-Upload / Fix for a Bug in the Media Manager's Image  (Read 42 times)

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 666
Fehler beim Resize im Media-Upload / Fix for a Bug in the Media Manager's Image
« on: Today at 12:22:18 PM »
Vorab: es betrifft ausschließlich die Upload-Funktion in der WB-eigenen Media-Verwaltung, andere Module mit eigenen Upload-Funktionen wie MiniGallery etc sind nicht betroffen

Problem tritt auf, wenn in den WB-Optionen oder in den Media-Ordner-Optionen nur ein Wert zur Größenveränderung angegeben wurde. Die Logik sah vor, das sich der zweite Wert dann aus dem Seitenverhältnis automatisch berechnet. Leider habe ich diese paar Zeilen Code bei der Umstellung wohl einfach vergessen und beim Testen immer zwei Werte angegeben.

Im Anhang ein Zip-File, das in den Ordner /admin/media/ entpackt werden muß. Es entält die Dateien upload.php und die setparameter.php, die die Einstellungen der Ordnerwerte erledigt.


------------------------

Hi all,
This is a bug report and fix regarding the image resizing functionality during uploads.
Scope of the issue: Please note that this problem exclusively affects the native WebsiteBaker media manager's upload feature. Add-on modules that have their own uploaders, like MiniGallery, are not impacted.
What is the problem?
The bug appears when you specify only a single dimension (either width or height) for image resizing in the global settings or in a specific media folder's options. The logic was supposed to automatically calculate the missing dimension to preserve the image's original aspect ratio. Unfortunately, I missed migrating this piece of code during a recent update and my own testing was always done by providing both a width and a height.
How to fix it:
Please find a zip file attached. You need to extract its contents into your /admin/media/ folder, overwriting the existing files. The archive contains the patched upload.php file and setparameter.php, which is responsible for managing the folder-specific settings.

Admin Comment: Anhang noch mal getauscht, fehlt noch ein TypeCast
« Last Edit: Today at 01:23:48 PM by sternchen8875 »
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Fehler beim Resize im Media-Upload / Fix for a Bug in the Media Manager's Image
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2