As long as a plant is growing, it is a net producer of oxygen. When plants consume oxygen through respiration, they convert glucose into energy, but in doing so they use exactly as much oxygen as the plant liberated when it created the glucose through photosynthesis.
Meanwhile photosynthesis provides glucose which is built into cellulose which is the plant itself, and this produces oxygen with no consumption.
As long as a plant is growing, it is a net producer of oxygen. When plants consume oxygen through respiration, they convert glucose into energy, but in doing so they use exactly as much oxygen as the plant liberated when it created the glucose through photosynthesis.
Meanwhile photosynthesis provides glucose which is built into cellulose which is the plant itself, and this produces oxygen with no consumption.
Net result is net oxygen.