Comments (2)
Here is where the width is measured: https://github.com/BKWLD/decoy/blob/master/classes/Models/Image.php#L193
I could do something like:
https://stackoverflow.com/a/14105726/59160
Or maybe allow width / height to be null ... I don't think Decoy ever does anything with those values, so I think they could be null.
from decoy.
I have made width and height columns in the DB table nullable. That kinda solved the problem, and now svg files are uploadable in an image field. But then I've noticed two other bugs:
- The image is not shown/previewed in the field in Decoy.
- Some error in the console.
I think Decoy is trying to make a thumbnail of the uploaded image, which fails with svg files.
from decoy.
Related Issues (20)
- Increment visual version numbers in sidebar with recently releases
- Vertical align the table actions
- Translations for fields
- Elements key is not declared in elements.yaml HOT 1
- Add CSV export support
- Searching for date and changing search field duplicates the date
- Don't write changes when admin remember_token changes HOT 1
- Changing element field type after it has been saved to DB
- Admin login not working on fresh install HOT 2
- wysiwyg editor trying to customise HOT 3
- Can't set Decoy locale() HOT 1
- Cannot Install decoy to fresh Laravel HOT 3
- Images + Files WYSIWYG editor HOT 1
- Do you need Filipino Translation for BKWLD?
- Changing date format throughout Decoy HOT 2
- Support Laravel 5.6 HOT 4
- Decoy Admin area not showing properly HOT 1
- Enabling Roles causes error exception HOT 6
- Call to undefined method Illuminate\Events\Dispatcher::fire() HOT 1
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 decoy.