Resize and image -> cropping

Hi, I’m trying to resize a video before displaying it.
The original video is 100x200px.
Screen Shot 2022-08-06 at 3.14.15 PM

If I resize to 100x100px it crops the top part, looks good.
Screen Shot 2022-08-06 at 3.14.03 PM

If I resize to 50x100px (50% proportionally for each dimension), it crops one part instead of resizing and it looks it’s doing some interlacing.
Screen Shot 2022-08-06 at 3.13.38 PM

Why is cropping instead of resizing, and what can this interlacing effect be due to?

That’s the code:

import processing.video.*;
Movie movie;

void setup() {
  size(320, 640);
  noStroke();
  noSmooth();
  movie = new Movie(this, "waves3.mp4");
  movie.loop();
}

void movieEvent(Movie m) {
  m.read();
  m.resize(50, 100);
}

void draw() {
  background(0);
  movie.resize(50, 100);
  image(movie, 0, 0);
}

Hello @ishback,

See reference and syntax:
https://processing.org/reference/image_.html

Example:

image(movie, 0, 0, width/2, height/2);

You can also do some pixel manipulation for other desired effects:
https://processing.org/tutorials/video
https://processing.org/tutorials/pixels

A search revealed this:
https://forum.processing.org/two/discussion/23389/resizing-a-movie-possible-bug.html

I did not explore further…

:)