#!/usr/bin/php findById($postId); if (!$post) { echo "Post with this ID was not found in the database."; return; } $image = $imageConverter->createImageFromBuffer($post->getContent()); $post->setImageWidth($imageManipulator->getImageWidth($image)); $post->setImageHeight($imageManipulator->getImageHeight($image)); $postDao->save($post);