Giter VIP home page Giter VIP logo

Comments (10)

dimalebid avatar dimalebid commented on June 19, 2024 1

https://drive.google.com/file/d/1W-0efGWBJ2vwJ1pSDaIyGeRWzEnPZul3/view?usp=share_link
"laravel/framework": "^9.19",
"laravel/nova": "~4.0",
"ctessier/nova-advanced-image-field": "^2.0.2",

Images:
https://drive.google.com/file/d/1x0SS6AJzRQRGwUx3NsuzFSqammr5cUAO/view?usp=share_link
https://drive.google.com/file/d/11f6mQrstQjqF2Mbpw8o7LIwEU18aTkcz/view?usp=share_link

Developing on localhost (OpenServer)

from nova-advanced-image-field.

dimalebid avatar dimalebid commented on June 19, 2024 1

yes

from nova-advanced-image-field.

ctessier avatar ctessier commented on June 19, 2024 1

Please try that branch and let me know: composer require "ctessier/nova-advanced-image-field":"dev-fix-unsupported-format-windows"

I couldn't reproduce as I am not on Windows but I think it might do the job.
Like you suggested in a previous comment, forcing the path seems to help, otherwise the extension cannot be resolved for some reason on Windows and ends up being tmp, which is not supported.

I still think this is a issue with Intervention, but let's see if that workaround helps.
Thank you for your help 😉

from nova-advanced-image-field.

ctessier avatar ctessier commented on June 19, 2024 1

Hello, yes it works great

Great, thank you!
I'll try to publish a new version tonight.

Thank you again for your help!

from nova-advanced-image-field.

dimalebid avatar dimalebid commented on June 19, 2024

vendor/ctessier/nova-advanced-image-field/src/TransformableImage.php on the line 167

$this->image->save(); replaced with $this->image->save('public',80, 'jpg');

The error has gone, but there is God, does not save the cut -up picture, retains oreginal.

Use AdvancedImage::make('Photo')->croppable()

from nova-advanced-image-field.

ctessier avatar ctessier commented on June 19, 2024

Hello @dimalebid,

I closed your issue because it was not proven yet that it is related to the package. I was never able to reproduce it. It was raised multiple times and the same issue in the Intervention repo is still opened, meaning it was not solved on their side yet either.

Are you able to provide to me the image your are working with? Please make sure the file has a defined extension.

I cannot make the modification you suggest, as it forces the output's quality and extension.

from nova-advanced-image-field.

dimalebid avatar dimalebid commented on June 19, 2024

Hello @ctessier I am using code: AdvancedImage::make('Photo')->croppable() https://prnt.sc/MtPKCtEz7qCk (like this). Where can I specify the image format? maybe some other code is needed to make it work properly?

from nova-advanced-image-field.

ctessier avatar ctessier commented on June 19, 2024

Hello @ctessier I am using code: AdvancedImage::make('Photo')->croppable() https://prnt.sc/MtPKCtEz7qCk (like this). Where can I specify the image format? maybe some other code is needed to make it work properly?

The way you use the package doesn't really matter. It just takes the original file and use Intervention to transform it and save it. Nothing is changed in terms of format or extension.

Do you have this error with all your images? I guess not.

A simple Google search gave me this result: https://stackoverflow.com/a/50067359/2291873
Please check your file properties (including name and MIME type).

from nova-advanced-image-field.

ctessier avatar ctessier commented on June 19, 2024

https://drive.google.com/file/d/1W-0efGWBJ2vwJ1pSDaIyGeRWzEnPZul3/view?usp=share_link "laravel/framework": "^9.19", "laravel/nova": "~4.0", "ctessier/nova-advanced-image-field": "^2.0.2",

Images: https://drive.google.com/file/d/1x0SS6AJzRQRGwUx3NsuzFSqammr5cUAO/view?usp=share_link https://drive.google.com/file/d/11f6mQrstQjqF2Mbpw8o7LIwEU18aTkcz/view?usp=share_link

Developing on localhost (OpenServer)

Thank you @dimalebid for all these details.
I cannot reproduce on my end (using WSL and DevContainers) but I have a trail. Is your server running on Windows?

from nova-advanced-image-field.

dimalebid avatar dimalebid commented on June 19, 2024

Hello, yes it works great

from nova-advanced-image-field.

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.