The price of these two tubs is the same, and you wouldn't immediately tell, unless you look at the weight, that you're getting less peanut butter for the same price.
There's another similar tactic called skimpflation that is often used but harder to track, where the weight and price of the product stays the same, but the quality of the ingredients decreases.