Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: mod_imagemagick didn't import anything #2789

Merged
merged 1 commit into from Aug 12, 2022

Conversation

rodolforg
Copy link
Contributor

it uses application name "convert" to convert the desired image
into another temporary one with a well-known format (PNG).
This temporary image would then be really imported
(via another module - not very clever; what if it is not loaded?)

The problem is the temporary file is automatically named without any
extension.
In the end, Synfig can't load it, as it depends on the extension to select
the Importer.

Tested with a XPM file because XPM seems to be only loaded by imagemagick
https://filesamples.com/formats/xpm

BREAKING CHANGE: Synfig library API changed:

  • Two methods of FileSystemTemporary has a new optional parameter: extension:
  • generate_system_temporary_filename
  • generate_system_temporary_filename_base

it uses application name "convert" to convert the desired image
into another temporary one with a well-known format (PNG).
This temporary image would then be really imported
(via another module - not very clever; what if it is not loaded?)

The problem is the temporary file is automatically named without any
extension.
In the end, Synfig can't load it, as it depends on the extension to select
the Importer.

Tested with a XPM file because XPM seems to be only loaded by imagemagick
https://filesamples.com/formats/xpm

BREAKING CHANGE: Synfig library API changed:
- Two methods of FileSystemTemporary has a new optional parameter: extension:
 - generate_system_temporary_filename
 - generate_system_temporary_filename_base
@ice0 ice0 changed the title fix!: imagemagick didn't import anything fix!: mod_imagemagick didn't import anything Aug 12, 2022
@ice0 ice0 merged commit 25f28b1 into synfig:master Aug 12, 2022
@ice0
Copy link
Collaborator

ice0 commented Aug 12, 2022

Merged. Thank you!

@rodolforg rodolforg deleted the fix-imagemagick-importer branch August 12, 2022 23:06
rodolforg added a commit to rodolforg/synfig that referenced this pull request Aug 13, 2022
with the fix provided by PR synfig#2789 (commit 25f28b1),
it was finally viable to implement this (simple) feature :)

fix synfig#965
ice0 pushed a commit that referenced this pull request Aug 15, 2022
with the fix provided by PR #2789 (commit 25f28b1),
it was finally viable to implement this (simple) feature :)

fix #965
@Gilraiser
Copy link

Thank you very much, I'm sure it will be very helpful for everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants