When generating ActiveStorage variants with libvips you may strip exif data by passing saver: { strip: true} argument. E.g.
photo.file.variant(
resize_to_fill: [102, 102, {crop: "attention"}],
convert: 'avif',
saver: {
quality: 40,
strip: true
}
)
If you are using imagick as processor, according to doc you may use strip: true as param of variant function, but I haven't tested this.