https://github.com/fasterthanlime/swiff
Given an HTTP(S) URL, return width and height for an .swf file
https://github.com/fasterthanlime/swiff
Last synced: 7 months ago
JSON representation
Given an HTTP(S) URL, return width and height for an .swf file
- Host: GitHub
- URL: https://github.com/fasterthanlime/swiff
- Owner: fasterthanlime
- Created: 2017-01-03T19:29:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T19:47:57.000Z (over 9 years ago)
- Last Synced: 2025-01-04T17:30:14.541Z (over 1 year ago)
- Language: Go
- Size: 27.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swiff
Detects a SWF file's width/height given a url
### Usage
swiff is a command-line utility that accepts a single argument:
```bash
swiff https://example.org/example.swf
```
### Output
swiff always outputs JSON, the structure is as follows:
```javascript
{
"success": true, /* or false */
"errors": [], /* or a list of strings */
"info": { /* or null */
"width": 1280,
"height": 720
} /* except the actual width/height */
}
```
### Compatibility
swiff supports uncompressed SWF files, gzip-compressed SWF files, and lzma-compressed SWF files.
It only downloads as little as it needs to find the resolution, and doesn't store anything on disk.