v0.16.8 Fix TIFF image support bug
This commit is contained in:
parent
daee737529
commit
42f1f54876
@ -1,5 +1,5 @@
|
|||||||
# gossamer threads migration-import code
|
# gossamer threads migration-import code
|
||||||
# v0.16.7
|
# v0.16.8
|
||||||
|
|
||||||
require 'mysql2'
|
require 'mysql2'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
@ -455,6 +455,7 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
next
|
next
|
||||||
end
|
end
|
||||||
temp_file.close
|
temp_file.close
|
||||||
|
temp_file.unlink
|
||||||
temp_file = File.open(converted_tiff_to_png_path)
|
temp_file = File.open(converted_tiff_to_png_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -515,7 +516,7 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
|
|
||||||
# Clean up temporary files
|
# Clean up temporary files
|
||||||
temp_file.close
|
temp_file.close
|
||||||
temp_file.unlink
|
temp_file.unlink if temp_file.is_a?(Tempfile)
|
||||||
resized_temp_file.close
|
resized_temp_file.close
|
||||||
resized_temp_file.unlink
|
resized_temp_file.unlink
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user