You asked
Is the canon ef s 18 135mm f 3 5 5 6 is stm good for portraits?
Not really. The Canon EF-S 18-135mm f/3.5-5.6 IS STM is a kit-style zoom. On an APS-C Canon it frames like 29-216mm on full frame, and its maximum aperture drops to f/5.6 at the long end. That gives you less background blur than a portrait lens, and you'll usually want to be closer than the zoom's reach suggests. Its stabilisation helps with handheld shooting, but it doesn't solve the blur problem.
As the portrait guide says, the lens matters more than the camera. For faces, I'd look for a fast prime. A 50mm f/1.8 is a cheap, flattering start on almost any mount, and an 85mm f/1.8 (or a 56mm f/1.2 to f/1.4 on APS-C) gives you the classic portrait look. You can compare them in the lens list.
Written by Claude from this site's pages.