Comments (1)
Hi @rabol, thank you for your message.
The Laravel Nova image field type doesn't support base64 out of the box.
However, you should be able to make use of your base64 data using Laravel Nova native methods such as resolveUsing
: https://nova.laravel.com/docs/resources/fields.html#field-resolution-formatting
That would involve taking the base64 as the input, create a temporary binary file and return the file path so the image can be displayed.
Then, when saving a file, you can use fillUsing
to take the file path as an input, and generate the base64 string to hydrate the model: https://nova.laravel.com/docs/resources/fields.html#field-hydration.
As an alternative when saving, you can try to call ->convert('data-url')
, and see what it does... This is provided by Intervention Image and made available by this package. I have never tried it though.
Hoping this help.
from nova-advanced-image-field.
Related Issues (20)
- Laravel Nova: Encoding format (tmp) is not supported. HOT 1
- Upload not working on server running Windows (`Encoding format (tmp) is not supported.`) HOT 10
- A default cropable area HOT 1
- AdvancedImage fields not replicated
- Webp HOT 2
- Croppable undermining dimension rules
- Support for `intervention/image:^3.0` HOT 1
- Is there a way to turn off the zoom / size change in cropping? HOT 2
- Looking to make images that are cached bustable, use a query string HOT 2
- Is there a method to have multipul images per record? HOT 2
- Anyone working on a Nova 4 upgrade? HOT 7
- Can we add watermark? HOT 1
- s3 disk() function compatibility HOT 1
- JS errors HOT 2
- Encoding format (tmp) is not supported. HOT 2
- Nothing showing in nova HOT 1
- Argument 2 passed to Ctessier\NovaAdvancedImageField\AdvancedImage::transformImage() must be an object HOT 1
- Doesn't work on a hosting HOT 4
- File change doesn't work anymore from Nova v4.22.0 HOT 12
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 nova-advanced-image-field.