That's correct, income for which you do not have offsetting deductions, taxable income, will reduce the amount of gain you can harvest. Perhaps I should have mentioned this as well, but it's already somewhat complicated subject and I didn't want to add complication.
Anyone actually looking to manage their taxes should consult with a quality CPA, and everyone's situation is very different.