Not all comics are produced in an assembly-line manner, but when they are, the penciler usually gets most of the glory because they're the ones laying out the story based on the writer's plot, and define the general style of the art. But the inker's job is to make the art look as refined and professional as possible.