We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
After changing inside the swiftvideogenertaor, the app crashes when convert images with different size.type = _type audioURLs = _audios
if self.type == .single { if let _image = VideoGenerator.shouldOptimiseImageForVideo ? _images.first?.resizeImageToVideoSize() : _images.first { self.images = [UIImage](repeating: _image, count: 2) } } else { for _image in _images { autoreleasepool { VideoGenerator.scaleHeight = CGFloat(Float(_image.getCropRatio())) let height = VideoGenerator.scaleHeight if let imageData = _image.scaleImageToSize(newSize: CGSize(width: VideoGenerator.videoImageWidthForMultipleVideoGeneration, height: Int(CGFloat(VideoGenerator.videoImageWidthForMultipleVideoGeneration) * CGFloat(VideoGenerator.scaleHeight!))))?.pngData() { datasImages.append(imageData) } } } datasImages.forEach { if let imageData = $0, let image = UIImage(data: imageData, scale: UIScreen.main.scale) { self.images.append(image) } } datasImages.removeAll() }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
After changing inside the swiftvideogenertaor, the app crashes when convert images with different size.type = _type
audioURLs = _audios
The text was updated successfully, but these errors were encountered: