Soft pneumatic grippers, structures created from soft material like silicone rubber and powered by air pressure, can grip and transfer fragile items safely and stably. These grippers are widely applicable under medical situations, especially during surgery. Other applications include automated laboratory operations, underwater gripping, food delivery, extraterrestrial exploration efforts, etc. However, traditional soft grippers face serious difficulties with gripping objects of different volumes and weights. This study proposed a novel layer-jamming mechanism of tuning the stiffness of soft grippers to increase its weight capacity. The study also proposed a novel bellowed-pipe structure for soft grippers to incorporate dual-mode gripping. The process of gripping was automated through the introduction of a camera and recognition algorithms capable of computing the size and depth of the detected object. Experiments conducted in room conditions, using the variable stiffness mechanism, the gripper could grip objects 120% heavier than without using the mechanism, indicating a significant advancement from traditional soft grippers. Further research could be done with making the gripper smaller and applicable under surgical conditions.