Skip to content

X8J/Content-Aware-Scale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Content Aware Scale

A alternative to using a photoshop script to do content aware scale using python seam carving.

Before & After alt text

What is content aware scale?

"Content Aware Scaling was first introduced in Photoshop CS4 and is used to resize an image while preserving the proportions of important image elements. Normal scaling affects all pixels uniformly when resizing an image but content aware scale attempts to only alter pixels that have little visual content"

This script allows content aware scale to be applied frame by frame over a video, without a need for photoshop.

To add

  • Loading bar
  • Optimize
  • UI or integration to After Effects

Usage

python content_aware_scale.py input_video.mp4 output_scaled_video.mp4 --scale_x 0.5 --scale_y 0.5

About

Video to video content aware scale in python based on the CAS feature in Photoshop.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages