shutter speed is one of the exif data wordpress tries to extract from images when uploaded. If the image do not contain the info it will be zero, hence your division by zero error. Somewhere before that code you should check if the image even needs to go there. If it is not a photo then probably not.
Related Posts:
- How do I change/modify the_post_thumbnail(); html output?
- What’s the best way to use the Featured Image for responsive web design?
- How to add a class to the attachment images
- Hide custom image sizes from media library
- Change the filename format of saved featured images
- Using file_exists to check file in Uploads
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Rename image uploads with width in filename
- Admin Media grid view images won’t load
- WordPress remove EXIF Data from specific Thumb
- Add custom image sizes to media uploader
- Use Filename for Alt and Title Tags
- Change Width of Featured Image Thumbnail on Add/Edit Post Page
- Use Timber/Twig to pull an image by image ID [closed]
- Adding graphics to 404.php page
- Add custom HTML to posts page
- Strip Image Classes from HTML Output
- Additional image sizes are not being generated
- Adding a querystring to an image URL when clicking ‘insert into post’?
- How to insert a local image with custom size
- Change logo based on incoming domain
- Theme currently showing thumbnails, how to show full size?
- Validate Uploaded Image using WordPress’ Built-in Functions?
- Auto crop images in WordPress
- How to get media objects
- How do I let users upload files to a chosen location?
- How to get specific image in media library with php
- hover image appears below placeholder instead of overlayed
- add_image_size for header_image
- Add custom url to featured image
- Get image’s size name from it’s dimension
- Recent posts with featured image or fallback image with permalink
- Set the background to a default image if there isn’t a specified “featured image”
- Mass update excerpt
- How to control WordPress image metadata (using Imagick)?
- Reprinting tags with all attributes
- Can’t upload image using media_sideload_image
- Upload multiple images to a Woocomerce product
- How to use thumbnail size of image if I’m only using src to get image
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Accessing an image folder inside public web directory
- Why is image hard cropping for one image using add_image_size not working?
- Enable custom logo upload if logo is not in header
- Scrape external webpage for first image and add it to new post
- “imagejpeg” function is not working in wordpress
- Download images from media library to computer in BULK?
- Three Questions with Twenty Eleven theme
- Which function crops images in wordpress?
- Resize image to specific dimension (X to Y ratio)
- How can I automatically resize up images to fit into all of my registered image sizes
- Where are the src and srcset sizes coming from?
- Only show first image in foreach loop
- I’m unable to call img path using single quotes in an array?
- Get the id of all images in a post
- Shortcode function doesnt work without caption
- Else/If Statement to Display Photo Descriptions
- Add valid XHTML closing img tags to WordPress galleries
- Convert canvas to image and upload image to server
- Controlling image output size ACF repeater [closed]
- Generate responsive post thumbnails of same size
- Attaching images to posts manually (i.e. with custom code, without the use of an API)
- Convert all uploaded PNG files to PNG-8 format
- foreach repeat html structure after every nth for attachment [closed]
- how to show images without passing it to timthumb.php file for resizing
- How to internationalize header image?
- WordPress loading all local images from specific directory?
- Change the URL of an image from wp_get_attachment_image_src for Product Posts based on Category
- not outputting medium size image URL
- Configure WordPress to Use Responsive Image Rendering
- How to use data URL in WordPress?
- Resize post thumbnail
- Where Do Image Dimensions Get Added To A Filename?
- I have a background-image in css file but don’t show in site.how to fix this prblm. i sent screenshot. thx
- Featured images duplicating and replacing next image
- Get list of posts from attachment
- I can’t load my images from a js file using wp_localize_script
- How to create an unordered list of images separate from the content
- what’s the syntax for if the image exists get the image?
- How do I get the featured post to share on Social Media and show on Individual Post pages?
- How to change this internal image link parameter using PHP?
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- How to resize an image server-side before upload?
- Retrieve first image url from custom post with pagination
- Snapshot Theme from WooThemes — empty ‘alt’ attribute
- Setting post thumbnail sizes in template file and functions.php
- Determine if only one image attached to a post/page
- Crop images in both sides on wordpress [duplicate]
- upload images on front by user using form
- PHP-Code inside Href-Tag
- Adding slides to an existing carousel manually
- Where to store the images of a custom WordPress theme?
- Display Post Titles on top of the_post_thumbnail()
- An automatic way to crop images of different sizes
- How to remove the intro animation which appears during the load up of some WordPress themes? [closed]
- Understanding responsive imagery
- Generate and upload screenshot as featured image for user-submitted post
- bloginfo url in javascript
- Use URL query string in img src attribute
- Adding caption to all images inside an article
- Image alt tag is showing post title instead of Alt Text