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

Clarify cropping #736

Merged
merged 2 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ The second configuration file is called `config/config.sh` lets you configure th
| IMG_UPLOAD | false | Upload the current image to a server (website, blog, host, etc)? |
| IMG_DIR | current | Location of the image the website will use. "allsky" is `/var/www/html/allsky` and "current" is `/home/pi/allsky`. |
| IMG_PREFIX | liveview- | An optional prefix on the image file name, before "image.jpg" (or whatever your image is called). |
| IMG_RESIZE | false | Resize images before cropping and saving. Adjust width and height according to your own sensor ratio. |
| IMG_RESIZE | false | Resize images before cropping, stretching, and saving. Adjust width and height according to your own sensor ratio. |
| IMG_HEIGHT | 2028 | The height of the resized image. |
| IMG_WIDTH | 1520 | The width of the resized image. |
| CROP_IMAGE | false | Crop the captured image BEFORE any other processing. This can be used, for example, to crop out most of the dark border when using a fisheye lens. |
| CROP_IMAGE | false | Crop images before stretching and saving. This can be used, for example, to crop out most of the dark border when using a fisheye lens. Cropped images may need the "textx" and/or "texty" settings changed. |
| CROP_WIDTH | 640| The width of the resulting image. |
| CROP_HEIGHT | 480 | The height of the resulting image. |
| CROP_OFFSET_X | 0 | The x offset to use when cropping. |
Expand Down Expand Up @@ -430,9 +430,12 @@ If you've built an allsky camera, please send me a message and I'll add you to t
* Ability to specify format of time displayed on image and temperature displayed in Celcius, Fahrenheit, or both.
* Ability to set bitrate on timelapse video.
* version **0.8.1**: Rearranged directory structure.
* Created a Wiki with additional documentation and troubleshooting tips.
* Renamed several variables in `config.sh` and `ftp-settings.sh`.
* CAMERA type of "auto" is no longer supported - you must specify "ZWO" or "RPiHQ".
* Startrails and keograms are now created using all CPUs on the Pi, drastically speeding up creating time.
* Startrails and keograms are now created using all CPUs on the Pi, drastically speeding up creation time.
* Installing the WebUI now preserves any website files (keograms, startrails, etc.) you have. This allows for non-destructive updates of the WebUI.
* New script called `upload.sh` centralizes all the upload code from other scripts, and can be used to debug uploading issues. See the Wiki for more information.
* Many bug fixes.

## Donation
Expand Down
6 changes: 4 additions & 2 deletions config_repo/config.sh.repo
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ IMG_DIR="current"
# This must match what the local web site thinks the name is (see /var/www/html/allsky/config.js).
IMG_PREFIX="liveview-"

# Resize images before cropping and saving.
# Resize images before cropping, stretching, and saving.
# Adjust IMG_WIDTH and IMG_HEIGHT according to your camera's sensor ratio.
IMG_RESIZE="false"
IMG_WIDTH=2028
IMG_HEIGHT=1520

# Crop images, used to improve them when using a fisheye lens.
# Crop images before stretching and saving.
# This is useful to remove some of the black border when using a fisheye lens.
# If you crop an image you may need to change the "Text X" and/or "Text Y" settings in the WebUI.
CROP_IMAGE="false"
CROP_WIDTH=640
CROP_HEIGHT=480
Expand Down