Comments (6)
The containers are built automatically using CircleCI. Here's the state of CircleCI's arm64 support: https://ideas.circleci.com/ideas/CCI-I-900
from dangerzone.
Hmm, looks like they've been sitting on the issue for a year. That doesn't make the prospect of arm64 images too promising.
from dangerzone.
Would be useful for when Apple Silicon devices with Big Sur come out and Docker for Apple silicon ( although it might run in a VM with a guest ARM Linux like the current version for Intel Macs uses Linux)
from dangerzone.
CircleCI now supports ARM as resource class, but not with their Docker executor. The issue is tracked here.
from dangerzone.
Building a native image on an ARM machine (by removing the --platform linux/amd64
argument from container.py
and build-image.sh
and then rebuilding the image) gives a remarkable improvement to document conversion speed (over 3 times faster):
ARM image on an ARM machine (Apple Silicon/M1) (~5 seconds):
(dangerzone-H9rmGDxH-py3.10) guthrie@macbook dangerzone % time ./dev_scripts/dangerzone-cli test_docs/sample.pdf typing
╭──────────────────────────╮
│ ▄██▄ │
│ ██████ │
│ ███▀▀▀██ │
│ ███ ████ │
│ ███ ██████ │
│ ███ ▀▀▀▀████ │
│ ███████ ▄██████ │
│ ███████ ▄█████████ │
│ ████████████████████ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ │
│ Dangerzone v0.3.1 │
│ https://dangerzone.rocks │
╰──────────────────────────╯
Converting document to safe PDF
> /usr/local/bin/Docker run --network none -v /Users/guthrie/Projects/dangerzone/test_docs/sample.pdf:/tmp/input_file -v '/Users/guthrie/Library/Application Support/dangerzone/tmp/tmpe821bbr8/pixels:/dangerzone' dangerzone.rocks/dangerzone /usr/bin/python3 /usr/local/bin/dangerzone.py document-to-pixels
3% Separating document into pages
5% Converting page 1/4 to pixels
16% Converting page 2/4 to pixels
27% Converting page 3/4 to pixels
38% Converting page 4/4 to pixels
50% Converted document to pixels
> /usr/local/bin/Docker run --network none -v '/Users/guthrie/Library/Application Support/dangerzone/tmp/tmpe821bbr8/pixels:/dangerzone' -v '/Users/guthrie/Library/Application Support/dangerzone/tmp/tmpe821bbr8/safe:/safezone' -e OCR=0 -e OCR_LANGUAGE=None dangerzone.rocks/dangerzone /usr/bin/python3 /usr/local/bin/dangerzone.py pixels-to-pdf
50% Converting page 1/4 from pixels to PDF
61% Converting page 2/4 from pixels to PDF
72% Converting page 3/4 from pixels to PDF
83% Converting page 4/4 from pixels to PDF
95% Merging 4 pages into a single PDF
97% Compressing PDF
100% Safe PDF created
Safe PDF created successfully
/Users/guthrie/Projects/dangerzone/test_docs/sample-safe.pdf
./dev_scripts/dangerzone-cli test_docs/sample.pdf 0.19s user 0.12s system 6% cpu 5.016 total
AMD image on the same ARM machine (~16 seconds):
(dangerzone-H9rmGDxH-py3.10) guthrie@macbook dangerzone % time ./dev_scripts/dangerzone-cli test_docs/sample.pdf typing
╭──────────────────────────╮
│ ▄██▄ │
│ ██████ │
│ ███▀▀▀██ │
│ ███ ████ │
│ ███ ██████ │
│ ███ ▀▀▀▀████ │
│ ███████ ▄██████ │
│ ███████ ▄█████████ │
│ ████████████████████ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ │
│ Dangerzone v0.3.1 │
│ https://dangerzone.rocks │
╰──────────────────────────╯
Converting document to safe PDF
> /usr/local/bin/Docker run --network none -v /Users/guthrie/Projects/dangerzone/test_docs/sample.pdf:/tmp/input_file -v '/Users/guthrie/Library/Application Support/dangerzone/tmp/tmpv3ol9rj3/pixels:/dangerzone' dangerzone.rocks/dangerzone /usr/bin/python3 /usr/local/bin/dangerzone.py document-to-pixels
Invalid JSON returned from container: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
3% Separating document into pages
5% Converting page 1/4 to pixels
16% Converting page 2/4 to pixels
27% Converting page 3/4 to pixels
38% Converting page 4/4 to pixels
50% Converted document to pixels
> /usr/local/bin/Docker run --network none -v '/Users/guthrie/Library/Application Support/dangerzone/tmp/tmpv3ol9rj3/pixels:/dangerzone' -v '/Users/guthrie/Library/Application Support/dangerzone/tmp/tmpv3ol9rj3/safe:/safezone' -e OCR=0 -e OCR_LANGUAGE=None dangerzone.rocks/dangerzone /usr/bin/python3 /usr/local/bin/dangerzone.py pixels-to-pdf
Invalid JSON returned from container: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
50% Converting page 1/4 from pixels to PDF
61% Converting page 2/4 from pixels to PDF
72% Converting page 3/4 from pixels to PDF
83% Converting page 4/4 from pixels to PDF
95% Merging 4 pages into a single PDF
97% Compressing PDF
100% Safe PDF created
Safe PDF created successfully
/Users/guthrie/Projects/dangerzone/test_docs/sample-safe.pdf
./dev_scripts/dangerzone-cli test_docs/sample.pdf 0.18s user 0.08s system 1% cpu 15.978 total
(dangerzone-H9rmGDxH-py3.10) guthrie@macbook dangerzone %
from dangerzone.
The original issue was for providing an arm64 image. With #337 (which will be shipped with the 0.4.1 version) this will already be the case. However, users will have to manually copy over the image since we don't distribute .deb
with the arm64 image. To overcome this one will have to build from source on a linux arm system, at the moment.
We don't plan on supporting linux 64 arm systems at the moment. However, for macOS, we will support arm-based macs (apple silicon / m1 / m2).
With that said, I'll close this issue.
from dangerzone.
Related Issues (20)
- Enable dependabot to learn about updates to GitHub Actions HOT 3
- Dangerzone not opening on macOS after installation. HOT 5
- QA and Release 0.6.1 HOT 3
- AttributeError: module 'PySide2.QtGui' has no attribute 'QAction' when running on Qt5 HOT 1
- Run from CLI with no containers HOT 3
- Dangerzone is listed as a PDF viewer to open safe documents with on Linux HOT 4
- Exception during conversion can make the process hang HOT 3
- Docker is installed but isn't running on Ubuntu 22.04 HOT 11
- "Open With Dangerzone" with 2 PDFs results in 2 instances of Dangerzone being opened on Linux
- Text in progress bar is cut off - Increase line height in gui? HOT 1
- "Open With Dangerzone" with 2 documents results in a single document getting selected in macOS
- Dangerzone segfaults on Fedora 39/40 HOT 4
- Dangerzone on OpenBSD
- No Match Found HOT 2
- Research: How to automate alerts for linux distro prereleases?
- Package for Opensuse Tumbleweed HOT 3
- Detect default application for opening PDFs HOT 1
- Code scanning currently failing with dependabot.
- Add Dangezone source in our signed assets
- Unable to run podman inside containers when using silicon mac 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 dangerzone.