Auto adjust custom transition speed

Is there any way we can get transitions to automatically change speed based on length of transition specified? I am trying to use custom transitions with the playlist feature to make an image slideshow. Some transitions that are videos are cut off and some images glitch out.