Title: Cropping Problem
Last modified: August 20, 2016

---

# Cropping Problem

 *  [artdecodecor](https://wordpress.org/support/users/artdecodecor/)
 * (@artdecodecor)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/cropping-problem/)
 * The board members on here have been solid and have figured out some of the issues
   I have had. I have just a couple glitches left from the “web designer” who left
   us out-to-dry.
 * I figured what functions to manipulate in order for to stop adjusting the aspect
   ratio, but it seems no matter what I do to the photo – it crops the photo incorrectly.
 * Site: [http://addcustomlighting.com/service/chandeliers/](http://addcustomlighting.com/service/chandeliers/)
   all the products are off a bit and some really off – the “classic outdoor lantern”
   for example
 * [http://addcustomlighting.com/service/floor-lamps/](http://addcustomlighting.com/service/floor-lamps/)
   <– first floor lamp really good example, cropped at top and bottom
 * code from my taxonomy-service.php file
 *     ```
       if ($image_id){
       $items_src.= '<a href="'.get_permalink().'" class="portfolio-item-preview" rel="" title="'.get_the_excerpt().'"><img src="'.$image_small_preview[0].'" width="200" height="200" alt="'.get_the_title().'" /></a>';
       ```
   
 * full code: [http://pastebin.com/GGMWgmYq](http://pastebin.com/GGMWgmYq)
 * code from my function-type-project.php file which when I adjust the numbers, 
   doesnt seem to be affecting the size. maybe the width and height in the above
   overwrites what is below? not a programmer, just an engineer with some decent
   logic and migraines over the last few weeks =)
 *     ```
       add_image_size( 'project-preview-small', 200, 200, false);
       add_image_size( 'project-preview-large', 400, 400, false);
       ```
   
 * full code: [http://pastebin.com/uupZcL2S](http://pastebin.com/uupZcL2S)
 * here is the code for the functions-setup:
    [http://pastebin.com/hfZJjWjF](http://pastebin.com/hfZJjWjF)
 * I’m figuring since I don’t have a standard photo size I am having issues. I shrink
   my images to be max 500 x Z or Z x 500 for details and the featured image is 
   usually 650 x Z or Z x 650. I’d hate to have to manipulate the images to some
   other standard; kind of hard given the number of products I need to put up. Also,
   might not be the issue since I tested the width and height in the ‘taxonomy-service”
   code and the aspect ratio remains the same on the same cropping occurs regardless
   of the size (when it is square).
 * If anything else is needed just ask. Again, I always appreciate the help and 
   headache relief.

The topic ‘Cropping Problem’ is closed to new replies.

## Tags

 * [aspect ratio](https://wordpress.org/support/topic-tag/aspect-ratio/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [artdecodecor](https://wordpress.org/support/users/artdecodecor/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/cropping-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
