diff --git a/src/main.c b/src/main.c index 027daaa..51d91a4 100644 --- a/src/main.c +++ b/src/main.c @@ -226,7 +226,7 @@ static int processAudio(char *filename, options_t *opts){ ImageOut(opts, &tmpimg, APT_CHB_OFFSET, APT_CH_WIDTH, "Temperature", Temperature, (char *)apt_TempPalette); } - // Temperature + // Visible if (CONTAINS(opts->type, Visible) && img.chA <= 2) { // Create another buffer as to not modify the orignal apt_image_t tmpimg = img; @@ -237,7 +237,7 @@ static int processAudio(char *filename, options_t *opts){ // Perform visible calibration apt_calibrate_visible(opts->satnum, &tmpimg, APT_CHA_OFFSET, APT_CH_WIDTH); - ImageOut(opts, &tmpimg, APT_CHA_OFFSET, APT_CH_WIDTH, "Visible", Visible, (char *)apt_TempPalette); + ImageOut(opts, &tmpimg, APT_CHA_OFFSET, APT_CH_WIDTH, "Visible", Visible, NULL); } // Linear equalise diff --git a/src/pngio.c b/src/pngio.c index f092b7a..2e4f9bd 100644 --- a/src/pngio.c +++ b/src/pngio.c @@ -223,9 +223,11 @@ int ImageOut(options_t *opts, apt_image_t *img, int offset, int width, char *des for(unsigned long int i = 0; i < strlen(opts->effects); i++){ switch (opts->effects[i]) { case Crop_Telemetry: - width -= APT_TOTAL_TELE; - offset += APT_SYNC_WIDTH + APT_SPC_WIDTH; - crop_telemetry = 1; + if (width == 2080) { + width -= APT_TOTAL_TELE; + offset += APT_SYNC_WIDTH + APT_SPC_WIDTH; + crop_telemetry = 1; + } break; case Precipitation_Overlay: greyscale = 0;