Code Monkey home page Code Monkey logo

Comments (4)

christophboecker avatar christophboecker commented on July 18, 2024

Hatte ich ähnlich vor ein paar Wochen auf Slack, da war es PHP 8.1 und nur eine deprecated-Warnung. Da ich den Fehler nicht nachstellen konnte, war auch keine Abhilfe meinerseits möglich.

Könnest Du mir bitte das Bild und die genaue Konfiguration des Effektes bzw. des ganzen media-typs (falls mehr als der FFFit-Effekt) zugänglich machen. Danke.

from focuspoint.

tyrant88 avatar tyrant88 commented on July 18, 2024

Ja nu. Ist halt, wenn einer der Werte nicht ganzzahlig ist. Die Werte sind auf dem screenshot drauf. Ich denke das ist eher ein allgemeines Ding, als ein Problem mit einem speziellen Bild.

from focuspoint.

christophboecker avatar christophboecker commented on July 18, 2024

Na gut, dann muss ich es halt so versuchen:

  • Quellbild 1920x640 (hab ich mir zurechtgeschnitzt), FP ist 50%/50%
  • Zielgröße 1137x640 => Fit-Effekt soll ein Zielbild dieser Größe erzeugen
    grafik
  • Cache gelöscht
  • Im Effekt einen Dump/Exit hinter das fehlerauslösende Statement gesetzt.
    grafik
  • Wenn Zeile 220-222 den Whoops auslöst, wird der Dump ja gar nicht erreicht. Umgekehrt: kommt der Dump gab es auch keinen Fehler.
  • Bild per direktem Link index.php?rex_media_type=test1137x640&rex_media_file=hiker1920x640.jpg aufgerufen

Tja, ich komme im Test zu diesem Dump:

 array:16 [▼
    "gdimage" => GdImage {#64 ▼
        +size: "1920x640"
        +trueColor: true
    }
    "sw" => 1920
    "sh" => 640
    "sr" => 3
    "fx" => 960
    "fy" => 320
    "dw" => 1137
    "dh" => 640
    "zoom" => 0
    "dr" => 1.7765625
    "too_wide" => true
    "cw" => 1137
    "ch" => 640
    "cx" => 392.0
    "cy" => 0
    "des" => GdImage {#66 ▼
        +size: "1137x640"
        +trueColor: true
    }
]

Deshalb noch mal die Bitte, mir weitere Informationen, insbesondere wie bei Dir der Effekt konfiguriert ist, zur Verfügung zu stellen. Vieleicht kann ich den Fehler ja dann reproduzieren.


Testauf nem Mac mit Brew (Apache, PHP 8.2.0), Redaxo/Addons auf dem neuesten Installer-Stand von heute mogen.

from focuspoint.

tyrant88 avatar tyrant88 commented on July 18, 2024

Also:
Es handelt sich um ein Bild aus einem feeds stream, das musste ich erstmal raussuchen...
wobei es wie gesagt eigentlich egal ist, aber damit du nach deiner Weise vorgehen kannst:
feeds 14

Der Effekt berechnet natürlich was, sonst würden ja die Kommastellen nicht entstehen:
Zwischenablage-2

Mit dem "cx" Parameter und dem Wert "392.0" bei dir in deinem Beispiel scheint der Code klarzukommen. Bei mir entsteht in "dw" und "cw" der Wert "1137.7777778".

from focuspoint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.