Gertrude and Toby Save the Gingerbread Man by Shari Tharp
Farmer Sam and his son Ryan are taking their prize pig to the county fair. Gertrude and Toby decide they have plenty of time to sneak off the farm for an extra adventure. But Gertrude and Toby soon discover that a giant has captured their friend, the Gingerbread Man! Gertrude and Toby come up with a plan to save him. But the giant, who is sleeping nearby, wakes up during their rescue!