Comments (4)
Und die Dateigröße
from cropper.
Schneller Fix: im if-Block:
https://github.com/FriendsOfREDAXO/cropper/blob/master/lib/Cropper/CropperExecutor.php#L200
if (isset($result['ok']) && $result['ok'] == 1 && isset($result['filename'])) {
$media = rex_media::get($result['filename']);
$msg = 'cropper_successful_' . $msgType;
$ok = true;
$size = @getimagesize($this->zebraImage->target_path);
$sql = rex_sql::factory();
$sql->setTable(rex::getTable('media'));
$sql->setWhere(['filename' => $result['filename']]);
$sql->setValue('filesize', filesize($this->zebraImage->target_path));
if ($size) {
$sql->setValue('width', $size[0]);
$sql->setValue('height', $size[1]);
}
$sql->update();
} else {
$msg = 'cropper_failed_' . $msgType;
$ok = false;
}
from cropper.
Dabei können auch gleich die rex_mediapool-Methoden ausgetauscht werden
from cropper.
Related Issues (15)
- Erweiterter Image Editor HOT 4
- Frage: Hintergrundfarbe HOT 3
- Größenänderung hinzufügen HOT 1
- Wunsch/Anregung: Editierbare "Aspect Ratios" HOT 1
- Nach Bearbeitung den Button "Übernehmen" erhalten HOT 3
- Nicht kompatibel mit REDAXO >= 5.13 // Medien werden nicht mehr übernommen HOT 1
- Bearbeitete Datei wird von Non-Admin ohne overwrite-Rechte überschrieben und nicht als neue Datei gespeichert. HOT 1
- Anordnung / Reihenfolge Bearbeiten-Button und zusätzliche Meta-Info Felder HOT 1
- Individuelle Ratios definieren HOT 2
- Kategorieauswahl bei neuer Datei
- Anregung: Backup der Originaldatei / "Zurück zum Original" HOT 2
- Wunsch: optional: Zoom per Mausrad ausschalten HOT 5
- Rotate-Left and Rotate-Right Änderungen werden nicht übernommen HOT 8
- Bearbeiten Link in Media-List
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cropper.