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

Bug with 24.4.0: --crop not working when invoking from CLI #1728

Closed
2 tasks done
leuchtum opened this issue May 16, 2024 · 4 comments
Closed
2 tasks done

Bug with 24.4.0: --crop not working when invoking from CLI #1728

leuchtum opened this issue May 16, 2024 · 4 comments

Comments

@leuchtum
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug
When invoking drawio from the CLI, the --crop option does not show any effect.
I've checked versions 20.7.5 and 24.2.5, there the --crop option worked as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Make sure you are on 24.4.0
  2. Create dummy file with some small content and a large paper size, e.g. A4
  3. Run /Applications/draw.io.app/Contents/MacOS/draw.io -x --crop dummy.drawio
  4. Open output

Expected behavior
Steps to reproduce the behavior:

  1. Make sure you are NOT on 24.4.0
  2. Create dummy file with some small content and a large paper size, e.g. A4
  3. Run /Applications/draw.io.app/Contents/MacOS/draw.io -x --crop dummy.drawio
  4. Open output

Screenshots
Dummy DRAWIO file
Bildschirmfoto 2024-05-16 um 23 21 53

Expected PDF file
Bildschirmfoto 2024-05-16 um 23 23 37

Bug PDF file
Bildschirmfoto 2024-05-16 um 23 24 45

draw.io version (In the Help->About menu of the draw.io editor):
Ok version: != 24.4.0
Bug version: == 24.4.0

Desktop (please complete the following information):

> sw_vers
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224

Additional context
NA

@leuchtum leuchtum changed the title Bug with 24.4.0: Crop not working when invoking from CLI Bug with 24.4.0: --crop not working when invoking from CLI May 16, 2024
@AlbertHansen
Copy link

This is also a problem using the '''drawio-desktop-bin''' from the AUR, with the version:

>>drawio --version
Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
24.4.0

@leuchtum
Copy link
Author

Not sure if this issue should be moved to the https://github.com/jgraph/drawio repo? Since this issue is not desktop related.

@davidjgraph
Copy link
Contributor

It is desktop only, only desktop has a CLI.

@davidjgraph
Copy link
Contributor

Fix in 24.4.6.

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

No branches or pull requests

3 participants