ruby-vips 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +14 -9
- data/VERSION +1 -1
- data/lib/vips/image.rb +68 -9
- data/lib/vips/methods.rb +215 -326
- data/lib/vips/operation.rb +15 -1
- data/lib/vips/version.rb +1 -1
- data/lib/vips.rb +2 -0
- metadata +2 -2
data/lib/vips/methods.rb
CHANGED
@@ -265,7 +265,6 @@ module Vips
|
|
265
265
|
# @!method copy(**opts)
|
266
266
|
# Copy an image.
|
267
267
|
# @param opts [Hash] Set of options
|
268
|
-
# @option opts [Boolean] :swap Swap bytes in image between little and big-endian
|
269
268
|
# @option opts [Integer] :width Image width in pixels
|
270
269
|
# @option opts [Integer] :height Image height in pixels
|
271
270
|
# @option opts [Integer] :bands Number of bands in image
|
@@ -301,9 +300,7 @@ module Vips
|
|
301
300
|
# @!method sequential(**opts)
|
302
301
|
# Check sequential access.
|
303
302
|
# @param opts [Hash] Set of options
|
304
|
-
# @option opts [Boolean] :trace trace pixel requests
|
305
303
|
# @option opts [Integer] :tile_height Tile height in pixels
|
306
|
-
# @option opts [Vips::Access] :access Expected access pattern
|
307
304
|
# @return [Vips::Image] Output image
|
308
305
|
|
309
306
|
# @!method cache(**opts)
|
@@ -606,7 +603,6 @@ module Vips
|
|
606
603
|
# @param min_ampl [Float] Minimum amplitude of Gaussian
|
607
604
|
# @param opts [Hash] Set of options
|
608
605
|
# @option opts [Boolean] :separable Generate separable Gaussian
|
609
|
-
# @option opts [Boolean] :integer Generate integer Gaussian
|
610
606
|
# @option opts [Vips::Precision] :precision Generate with this precision
|
611
607
|
# @return [Vips::Image] Output image
|
612
608
|
|
@@ -616,7 +612,6 @@ module Vips
|
|
616
612
|
# @param min_ampl [Float] Minimum amplitude of Logmatian
|
617
613
|
# @param opts [Hash] Set of options
|
618
614
|
# @option opts [Boolean] :separable Generate separable Logmatian
|
619
|
-
# @option opts [Boolean] :integer Generate integer Logmatian
|
620
615
|
# @option opts [Vips::Precision] :precision Generate with this precision
|
621
616
|
# @return [Vips::Image] Output image
|
622
617
|
|
@@ -886,9 +881,7 @@ module Vips
|
|
886
881
|
# @option opts [String] :separator Set of separator characters
|
887
882
|
# @option opts [Boolean] :memory Force open via memory
|
888
883
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
889
|
-
# @option opts [
|
890
|
-
# @option opts [Boolean] :fail Fail on first error
|
891
|
-
# @option opts [Boolean] :disc Open to disc
|
884
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
892
885
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
893
886
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
894
887
|
|
@@ -902,9 +895,7 @@ module Vips
|
|
902
895
|
# @option opts [String] :separator Set of separator characters
|
903
896
|
# @option opts [Boolean] :memory Force open via memory
|
904
897
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
905
|
-
# @option opts [
|
906
|
-
# @option opts [Boolean] :fail Fail on first error
|
907
|
-
# @option opts [Boolean] :disc Open to disc
|
898
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
908
899
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
909
900
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
910
901
|
|
@@ -914,9 +905,7 @@ module Vips
|
|
914
905
|
# @param opts [Hash] Set of options
|
915
906
|
# @option opts [Boolean] :memory Force open via memory
|
916
907
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
917
|
-
# @option opts [
|
918
|
-
# @option opts [Boolean] :fail Fail on first error
|
919
|
-
# @option opts [Boolean] :disc Open to disc
|
908
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
920
909
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
921
910
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
922
911
|
|
@@ -926,9 +915,7 @@ module Vips
|
|
926
915
|
# @param opts [Hash] Set of options
|
927
916
|
# @option opts [Boolean] :memory Force open via memory
|
928
917
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
929
|
-
# @option opts [
|
930
|
-
# @option opts [Boolean] :fail Fail on first error
|
931
|
-
# @option opts [Boolean] :disc Open to disc
|
918
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
932
919
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
933
920
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
934
921
|
|
@@ -944,9 +931,7 @@ module Vips
|
|
944
931
|
# @option opts [Vips::Interpretation] :interpretation Pixel interpretation
|
945
932
|
# @option opts [Boolean] :memory Force open via memory
|
946
933
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
947
|
-
# @option opts [
|
948
|
-
# @option opts [Boolean] :fail Fail on first error
|
949
|
-
# @option opts [Boolean] :disc Open to disc
|
934
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
950
935
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
951
936
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
952
937
|
|
@@ -956,9 +941,7 @@ module Vips
|
|
956
941
|
# @param opts [Hash] Set of options
|
957
942
|
# @option opts [Boolean] :memory Force open via memory
|
958
943
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
959
|
-
# @option opts [
|
960
|
-
# @option opts [Boolean] :fail Fail on first error
|
961
|
-
# @option opts [Boolean] :disc Open to disc
|
944
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
962
945
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
963
946
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
964
947
|
|
@@ -968,9 +951,7 @@ module Vips
|
|
968
951
|
# @param opts [Hash] Set of options
|
969
952
|
# @option opts [Boolean] :memory Force open via memory
|
970
953
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
971
|
-
# @option opts [
|
972
|
-
# @option opts [Boolean] :fail Fail on first error
|
973
|
-
# @option opts [Boolean] :disc Open to disc
|
954
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
974
955
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
975
956
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
976
957
|
|
@@ -980,9 +961,7 @@ module Vips
|
|
980
961
|
# @param opts [Hash] Set of options
|
981
962
|
# @option opts [Boolean] :memory Force open via memory
|
982
963
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
983
|
-
# @option opts [
|
984
|
-
# @option opts [Boolean] :fail Fail on first error
|
985
|
-
# @option opts [Boolean] :disc Open to disc
|
964
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
986
965
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
987
966
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
988
967
|
|
@@ -992,9 +971,7 @@ module Vips
|
|
992
971
|
# @param opts [Hash] Set of options
|
993
972
|
# @option opts [Boolean] :memory Force open via memory
|
994
973
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
995
|
-
# @option opts [
|
996
|
-
# @option opts [Boolean] :fail Fail on first error
|
997
|
-
# @option opts [Boolean] :disc Open to disc
|
974
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
998
975
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
999
976
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1000
977
|
|
@@ -1004,9 +981,7 @@ module Vips
|
|
1004
981
|
# @param opts [Hash] Set of options
|
1005
982
|
# @option opts [Boolean] :memory Force open via memory
|
1006
983
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1007
|
-
# @option opts [
|
1008
|
-
# @option opts [Boolean] :fail Fail on first error
|
1009
|
-
# @option opts [Boolean] :disc Open to disc
|
984
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1010
985
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1011
986
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1012
987
|
|
@@ -1016,9 +991,7 @@ module Vips
|
|
1016
991
|
# @param opts [Hash] Set of options
|
1017
992
|
# @option opts [Boolean] :memory Force open via memory
|
1018
993
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1019
|
-
# @option opts [
|
1020
|
-
# @option opts [Boolean] :fail Fail on first error
|
1021
|
-
# @option opts [Boolean] :disc Open to disc
|
994
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1022
995
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1023
996
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1024
997
|
|
@@ -1028,9 +1001,7 @@ module Vips
|
|
1028
1001
|
# @param opts [Hash] Set of options
|
1029
1002
|
# @option opts [Boolean] :memory Force open via memory
|
1030
1003
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1031
|
-
# @option opts [
|
1032
|
-
# @option opts [Boolean] :fail Fail on first error
|
1033
|
-
# @option opts [Boolean] :disc Open to disc
|
1004
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1034
1005
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1035
1006
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1036
1007
|
|
@@ -1040,9 +1011,52 @@ module Vips
|
|
1040
1011
|
# @param opts [Hash] Set of options
|
1041
1012
|
# @option opts [Boolean] :memory Force open via memory
|
1042
1013
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1043
|
-
# @option opts [
|
1044
|
-
# @option opts [
|
1045
|
-
# @
|
1014
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1015
|
+
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1016
|
+
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1017
|
+
|
1018
|
+
# @!method self.pdfload(filename, **opts)
|
1019
|
+
# Load pdf from file.
|
1020
|
+
# @param filename [String] Filename to load from
|
1021
|
+
# @param opts [Hash] Set of options
|
1022
|
+
# @option opts [Integer] :page Load this page from the file
|
1023
|
+
# @option opts [Integer] :n Load this many pages
|
1024
|
+
# @option opts [Float] :dpi Render at this DPI
|
1025
|
+
# @option opts [Float] :scale Scale output by this factor
|
1026
|
+
# @option opts [Array<Double>] :background Background value
|
1027
|
+
# @option opts [Boolean] :memory Force open via memory
|
1028
|
+
# @option opts [Vips::Access] :access Required access pattern for this file
|
1029
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1030
|
+
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1031
|
+
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1032
|
+
|
1033
|
+
# @!method self.pdfload_buffer(buffer, **opts)
|
1034
|
+
# Load pdf from buffer.
|
1035
|
+
# @param buffer [VipsBlob] Buffer to load from
|
1036
|
+
# @param opts [Hash] Set of options
|
1037
|
+
# @option opts [Integer] :page Load this page from the file
|
1038
|
+
# @option opts [Integer] :n Load this many pages
|
1039
|
+
# @option opts [Float] :dpi Render at this DPI
|
1040
|
+
# @option opts [Float] :scale Scale output by this factor
|
1041
|
+
# @option opts [Array<Double>] :background Background value
|
1042
|
+
# @option opts [Boolean] :memory Force open via memory
|
1043
|
+
# @option opts [Vips::Access] :access Required access pattern for this file
|
1044
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1045
|
+
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1046
|
+
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1047
|
+
|
1048
|
+
# @!method self.pdfload_source(source, **opts)
|
1049
|
+
# Load pdf from source.
|
1050
|
+
# @param source [Vips::Source] Source to load from
|
1051
|
+
# @param opts [Hash] Set of options
|
1052
|
+
# @option opts [Integer] :page Load this page from the file
|
1053
|
+
# @option opts [Integer] :n Load this many pages
|
1054
|
+
# @option opts [Float] :dpi Render at this DPI
|
1055
|
+
# @option opts [Float] :scale Scale output by this factor
|
1056
|
+
# @option opts [Array<Double>] :background Background value
|
1057
|
+
# @option opts [Boolean] :memory Force open via memory
|
1058
|
+
# @option opts [Vips::Access] :access Required access pattern for this file
|
1059
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1046
1060
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1047
1061
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1048
1062
|
|
@@ -1055,9 +1069,7 @@ module Vips
|
|
1055
1069
|
# @option opts [Boolean] :unlimited Allow SVG of any size
|
1056
1070
|
# @option opts [Boolean] :memory Force open via memory
|
1057
1071
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1058
|
-
# @option opts [
|
1059
|
-
# @option opts [Boolean] :fail Fail on first error
|
1060
|
-
# @option opts [Boolean] :disc Open to disc
|
1072
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1061
1073
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1062
1074
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1063
1075
|
|
@@ -1070,9 +1082,7 @@ module Vips
|
|
1070
1082
|
# @option opts [Boolean] :unlimited Allow SVG of any size
|
1071
1083
|
# @option opts [Boolean] :memory Force open via memory
|
1072
1084
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1073
|
-
# @option opts [
|
1074
|
-
# @option opts [Boolean] :fail Fail on first error
|
1075
|
-
# @option opts [Boolean] :disc Open to disc
|
1085
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1076
1086
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1077
1087
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1078
1088
|
|
@@ -1085,9 +1095,7 @@ module Vips
|
|
1085
1095
|
# @option opts [Boolean] :unlimited Allow SVG of any size
|
1086
1096
|
# @option opts [Boolean] :memory Force open via memory
|
1087
1097
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1088
|
-
# @option opts [
|
1089
|
-
# @option opts [Boolean] :fail Fail on first error
|
1090
|
-
# @option opts [Boolean] :disc Open to disc
|
1098
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1091
1099
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1092
1100
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1093
1101
|
|
@@ -1097,9 +1105,7 @@ module Vips
|
|
1097
1105
|
# @param opts [Hash] Set of options
|
1098
1106
|
# @option opts [Boolean] :memory Force open via memory
|
1099
1107
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1100
|
-
# @option opts [
|
1101
|
-
# @option opts [Boolean] :fail Fail on first error
|
1102
|
-
# @option opts [Boolean] :disc Open to disc
|
1108
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1103
1109
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1104
1110
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1105
1111
|
|
@@ -1109,9 +1115,7 @@ module Vips
|
|
1109
1115
|
# @param opts [Hash] Set of options
|
1110
1116
|
# @option opts [Boolean] :memory Force open via memory
|
1111
1117
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1112
|
-
# @option opts [
|
1113
|
-
# @option opts [Boolean] :fail Fail on first error
|
1114
|
-
# @option opts [Boolean] :disc Open to disc
|
1118
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1115
1119
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1116
1120
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1117
1121
|
|
@@ -1121,9 +1125,7 @@ module Vips
|
|
1121
1125
|
# @param opts [Hash] Set of options
|
1122
1126
|
# @option opts [Boolean] :memory Force open via memory
|
1123
1127
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1124
|
-
# @option opts [
|
1125
|
-
# @option opts [Boolean] :fail Fail on first error
|
1126
|
-
# @option opts [Boolean] :disc Open to disc
|
1128
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1127
1129
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1128
1130
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1129
1131
|
|
@@ -1134,9 +1136,7 @@ module Vips
|
|
1134
1136
|
# @option opts [Integer] :page Load this page from the image
|
1135
1137
|
# @option opts [Boolean] :memory Force open via memory
|
1136
1138
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1137
|
-
# @option opts [
|
1138
|
-
# @option opts [Boolean] :fail Fail on first error
|
1139
|
-
# @option opts [Boolean] :disc Open to disc
|
1139
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1140
1140
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1141
1141
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1142
1142
|
|
@@ -1147,9 +1147,7 @@ module Vips
|
|
1147
1147
|
# @option opts [Integer] :page Load this page from the image
|
1148
1148
|
# @option opts [Boolean] :memory Force open via memory
|
1149
1149
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1150
|
-
# @option opts [
|
1151
|
-
# @option opts [Boolean] :fail Fail on first error
|
1152
|
-
# @option opts [Boolean] :disc Open to disc
|
1150
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1153
1151
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1154
1152
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1155
1153
|
|
@@ -1160,9 +1158,7 @@ module Vips
|
|
1160
1158
|
# @option opts [Integer] :page Load this page from the image
|
1161
1159
|
# @option opts [Boolean] :memory Force open via memory
|
1162
1160
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1163
|
-
# @option opts [
|
1164
|
-
# @option opts [Boolean] :fail Fail on first error
|
1165
|
-
# @option opts [Boolean] :disc Open to disc
|
1161
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1166
1162
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1167
1163
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1168
1164
|
|
@@ -1174,9 +1170,7 @@ module Vips
|
|
1174
1170
|
# @option opts [Integer] :page Load this page from the file
|
1175
1171
|
# @option opts [Boolean] :memory Force open via memory
|
1176
1172
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1177
|
-
# @option opts [
|
1178
|
-
# @option opts [Boolean] :fail Fail on first error
|
1179
|
-
# @option opts [Boolean] :disc Open to disc
|
1173
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1180
1174
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1181
1175
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1182
1176
|
|
@@ -1188,9 +1182,7 @@ module Vips
|
|
1188
1182
|
# @option opts [Integer] :page Load this page from the file
|
1189
1183
|
# @option opts [Boolean] :memory Force open via memory
|
1190
1184
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1191
|
-
# @option opts [
|
1192
|
-
# @option opts [Boolean] :fail Fail on first error
|
1193
|
-
# @option opts [Boolean] :disc Open to disc
|
1185
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1194
1186
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1195
1187
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1196
1188
|
|
@@ -1202,9 +1194,7 @@ module Vips
|
|
1202
1194
|
# @option opts [Integer] :page Load this page from the file
|
1203
1195
|
# @option opts [Boolean] :memory Force open via memory
|
1204
1196
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1205
|
-
# @option opts [
|
1206
|
-
# @option opts [Boolean] :fail Fail on first error
|
1207
|
-
# @option opts [Boolean] :disc Open to disc
|
1197
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1208
1198
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1209
1199
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1210
1200
|
|
@@ -1212,11 +1202,10 @@ module Vips
|
|
1212
1202
|
# Load png from file.
|
1213
1203
|
# @param filename [String] Filename to load from
|
1214
1204
|
# @param opts [Hash] Set of options
|
1205
|
+
# @option opts [Boolean] :unlimited Remove all denial of service limits
|
1215
1206
|
# @option opts [Boolean] :memory Force open via memory
|
1216
1207
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1217
|
-
# @option opts [
|
1218
|
-
# @option opts [Boolean] :fail Fail on first error
|
1219
|
-
# @option opts [Boolean] :disc Open to disc
|
1208
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1220
1209
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1221
1210
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1222
1211
|
|
@@ -1224,11 +1213,10 @@ module Vips
|
|
1224
1213
|
# Load png from buffer.
|
1225
1214
|
# @param buffer [VipsBlob] Buffer to load from
|
1226
1215
|
# @param opts [Hash] Set of options
|
1216
|
+
# @option opts [Boolean] :unlimited Remove all denial of service limits
|
1227
1217
|
# @option opts [Boolean] :memory Force open via memory
|
1228
1218
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1229
|
-
# @option opts [
|
1230
|
-
# @option opts [Boolean] :fail Fail on first error
|
1231
|
-
# @option opts [Boolean] :disc Open to disc
|
1219
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1232
1220
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1233
1221
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1234
1222
|
|
@@ -1236,11 +1224,10 @@ module Vips
|
|
1236
1224
|
# Load png from source.
|
1237
1225
|
# @param source [Vips::Source] Source to load from
|
1238
1226
|
# @param opts [Hash] Set of options
|
1227
|
+
# @option opts [Boolean] :unlimited Remove all denial of service limits
|
1239
1228
|
# @option opts [Boolean] :memory Force open via memory
|
1240
1229
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1241
|
-
# @option opts [
|
1242
|
-
# @option opts [Boolean] :fail Fail on first error
|
1243
|
-
# @option opts [Boolean] :disc Open to disc
|
1230
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1244
1231
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1245
1232
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1246
1233
|
|
@@ -1250,9 +1237,7 @@ module Vips
|
|
1250
1237
|
# @param opts [Hash] Set of options
|
1251
1238
|
# @option opts [Boolean] :memory Force open via memory
|
1252
1239
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1253
|
-
# @option opts [
|
1254
|
-
# @option opts [Boolean] :fail Fail on first error
|
1255
|
-
# @option opts [Boolean] :disc Open to disc
|
1240
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1256
1241
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1257
1242
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1258
1243
|
|
@@ -1264,9 +1249,7 @@ module Vips
|
|
1264
1249
|
# @option opts [Boolean] :autorotate Rotate image using exif orientation
|
1265
1250
|
# @option opts [Boolean] :memory Force open via memory
|
1266
1251
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1267
|
-
# @option opts [
|
1268
|
-
# @option opts [Boolean] :fail Fail on first error
|
1269
|
-
# @option opts [Boolean] :disc Open to disc
|
1252
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1270
1253
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1271
1254
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1272
1255
|
|
@@ -1278,9 +1261,7 @@ module Vips
|
|
1278
1261
|
# @option opts [Boolean] :autorotate Rotate image using exif orientation
|
1279
1262
|
# @option opts [Boolean] :memory Force open via memory
|
1280
1263
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1281
|
-
# @option opts [
|
1282
|
-
# @option opts [Boolean] :fail Fail on first error
|
1283
|
-
# @option opts [Boolean] :disc Open to disc
|
1264
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1284
1265
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1285
1266
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1286
1267
|
|
@@ -1292,9 +1273,7 @@ module Vips
|
|
1292
1273
|
# @option opts [Boolean] :autorotate Rotate image using exif orientation
|
1293
1274
|
# @option opts [Boolean] :memory Force open via memory
|
1294
1275
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1295
|
-
# @option opts [
|
1296
|
-
# @option opts [Boolean] :fail Fail on first error
|
1297
|
-
# @option opts [Boolean] :disc Open to disc
|
1276
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1298
1277
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1299
1278
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1300
1279
|
|
@@ -1305,12 +1284,9 @@ module Vips
|
|
1305
1284
|
# @option opts [Integer] :page Load this page from the file
|
1306
1285
|
# @option opts [Integer] :n Load this many pages
|
1307
1286
|
# @option opts [Float] :scale Scale factor on load
|
1308
|
-
# @option opts [Integer] :shrink Shrink factor on load
|
1309
1287
|
# @option opts [Boolean] :memory Force open via memory
|
1310
1288
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1311
|
-
# @option opts [
|
1312
|
-
# @option opts [Boolean] :fail Fail on first error
|
1313
|
-
# @option opts [Boolean] :disc Open to disc
|
1289
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1314
1290
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1315
1291
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1316
1292
|
|
@@ -1321,12 +1297,9 @@ module Vips
|
|
1321
1297
|
# @option opts [Integer] :page Load this page from the file
|
1322
1298
|
# @option opts [Integer] :n Load this many pages
|
1323
1299
|
# @option opts [Float] :scale Scale factor on load
|
1324
|
-
# @option opts [Integer] :shrink Shrink factor on load
|
1325
1300
|
# @option opts [Boolean] :memory Force open via memory
|
1326
1301
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1327
|
-
# @option opts [
|
1328
|
-
# @option opts [Boolean] :fail Fail on first error
|
1329
|
-
# @option opts [Boolean] :disc Open to disc
|
1302
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1330
1303
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1331
1304
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1332
1305
|
|
@@ -1337,12 +1310,9 @@ module Vips
|
|
1337
1310
|
# @option opts [Integer] :page Load this page from the file
|
1338
1311
|
# @option opts [Integer] :n Load this many pages
|
1339
1312
|
# @option opts [Float] :scale Scale factor on load
|
1340
|
-
# @option opts [Integer] :shrink Shrink factor on load
|
1341
1313
|
# @option opts [Boolean] :memory Force open via memory
|
1342
1314
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1343
|
-
# @option opts [
|
1344
|
-
# @option opts [Boolean] :fail Fail on first error
|
1345
|
-
# @option opts [Boolean] :disc Open to disc
|
1315
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1346
1316
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1347
1317
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1348
1318
|
|
@@ -1356,9 +1326,7 @@ module Vips
|
|
1356
1326
|
# @option opts [Boolean] :autorotate Rotate image using orientation tag
|
1357
1327
|
# @option opts [Boolean] :memory Force open via memory
|
1358
1328
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1359
|
-
# @option opts [
|
1360
|
-
# @option opts [Boolean] :fail Fail on first error
|
1361
|
-
# @option opts [Boolean] :disc Open to disc
|
1329
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1362
1330
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1363
1331
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1364
1332
|
|
@@ -1372,9 +1340,7 @@ module Vips
|
|
1372
1340
|
# @option opts [Boolean] :autorotate Rotate image using orientation tag
|
1373
1341
|
# @option opts [Boolean] :memory Force open via memory
|
1374
1342
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1375
|
-
# @option opts [
|
1376
|
-
# @option opts [Boolean] :fail Fail on first error
|
1377
|
-
# @option opts [Boolean] :disc Open to disc
|
1343
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1378
1344
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1379
1345
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1380
1346
|
|
@@ -1388,69 +1354,7 @@ module Vips
|
|
1388
1354
|
# @option opts [Boolean] :autorotate Rotate image using orientation tag
|
1389
1355
|
# @option opts [Boolean] :memory Force open via memory
|
1390
1356
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1391
|
-
# @option opts [
|
1392
|
-
# @option opts [Boolean] :fail Fail on first error
|
1393
|
-
# @option opts [Boolean] :disc Open to disc
|
1394
|
-
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1395
|
-
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1396
|
-
|
1397
|
-
# @!method self.fitsload(filename, **opts)
|
1398
|
-
# Load a fits image.
|
1399
|
-
# @param filename [String] Filename to load from
|
1400
|
-
# @param opts [Hash] Set of options
|
1401
|
-
# @option opts [Boolean] :memory Force open via memory
|
1402
|
-
# @option opts [Vips::Access] :access Required access pattern for this file
|
1403
|
-
# @option opts [Boolean] :sequential Sequential read only
|
1404
|
-
# @option opts [Boolean] :fail Fail on first error
|
1405
|
-
# @option opts [Boolean] :disc Open to disc
|
1406
|
-
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1407
|
-
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1408
|
-
|
1409
|
-
# @!method self.fitsload_source(source, **opts)
|
1410
|
-
# Load fits from a source.
|
1411
|
-
# @param source [Vips::Source] Source to load from
|
1412
|
-
# @param opts [Hash] Set of options
|
1413
|
-
# @option opts [Boolean] :memory Force open via memory
|
1414
|
-
# @option opts [Vips::Access] :access Required access pattern for this file
|
1415
|
-
# @option opts [Boolean] :sequential Sequential read only
|
1416
|
-
# @option opts [Boolean] :fail Fail on first error
|
1417
|
-
# @option opts [Boolean] :disc Open to disc
|
1418
|
-
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1419
|
-
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1420
|
-
|
1421
|
-
# @!method self.openexrload(filename, **opts)
|
1422
|
-
# Load an openexr image.
|
1423
|
-
# @param filename [String] Filename to load from
|
1424
|
-
# @param opts [Hash] Set of options
|
1425
|
-
# @option opts [Boolean] :memory Force open via memory
|
1426
|
-
# @option opts [Vips::Access] :access Required access pattern for this file
|
1427
|
-
# @option opts [Boolean] :sequential Sequential read only
|
1428
|
-
# @option opts [Boolean] :fail Fail on first error
|
1429
|
-
# @option opts [Boolean] :disc Open to disc
|
1430
|
-
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1431
|
-
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1432
|
-
|
1433
|
-
# @!method self.niftiload(filename, **opts)
|
1434
|
-
# Load nifti volume.
|
1435
|
-
# @param filename [String] Filename to load from
|
1436
|
-
# @param opts [Hash] Set of options
|
1437
|
-
# @option opts [Boolean] :memory Force open via memory
|
1438
|
-
# @option opts [Vips::Access] :access Required access pattern for this file
|
1439
|
-
# @option opts [Boolean] :sequential Sequential read only
|
1440
|
-
# @option opts [Boolean] :fail Fail on first error
|
1441
|
-
# @option opts [Boolean] :disc Open to disc
|
1442
|
-
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1443
|
-
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1444
|
-
|
1445
|
-
# @!method self.niftiload_source(source, **opts)
|
1446
|
-
# Load nifti volumes.
|
1447
|
-
# @param source [Vips::Source] Source to load from
|
1448
|
-
# @param opts [Hash] Set of options
|
1449
|
-
# @option opts [Boolean] :memory Force open via memory
|
1450
|
-
# @option opts [Vips::Access] :access Required access pattern for this file
|
1451
|
-
# @option opts [Boolean] :sequential Sequential read only
|
1452
|
-
# @option opts [Boolean] :fail Fail on first error
|
1453
|
-
# @option opts [Boolean] :disc Open to disc
|
1357
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1454
1358
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1455
1359
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1456
1360
|
|
@@ -1464,9 +1368,7 @@ module Vips
|
|
1464
1368
|
# @option opts [String] :associated Load this associated image
|
1465
1369
|
# @option opts [Boolean] :memory Force open via memory
|
1466
1370
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1467
|
-
# @option opts [
|
1468
|
-
# @option opts [Boolean] :fail Fail on first error
|
1469
|
-
# @option opts [Boolean] :disc Open to disc
|
1371
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1470
1372
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1471
1373
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1472
1374
|
|
@@ -1480,140 +1382,122 @@ module Vips
|
|
1480
1382
|
# @option opts [String] :associated Load this associated image
|
1481
1383
|
# @option opts [Boolean] :memory Force open via memory
|
1482
1384
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1483
|
-
# @option opts [
|
1484
|
-
# @option opts [Boolean] :fail Fail on first error
|
1485
|
-
# @option opts [Boolean] :disc Open to disc
|
1385
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1486
1386
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1487
1387
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1488
1388
|
|
1489
|
-
# @!method self.
|
1490
|
-
# Load
|
1389
|
+
# @!method self.magickload(filename, **opts)
|
1390
|
+
# Load file with imagemagick.
|
1491
1391
|
# @param filename [String] Filename to load from
|
1492
1392
|
# @param opts [Hash] Set of options
|
1393
|
+
# @option opts [String] :density Canvas resolution for rendering vector formats like SVG
|
1493
1394
|
# @option opts [Integer] :page Load this page from the file
|
1494
1395
|
# @option opts [Integer] :n Load this many pages
|
1495
|
-
# @option opts [Boolean] :thumbnail Fetch thumbnail image
|
1496
|
-
# @option opts [Boolean] :autorotate Rotate image using exif orientation
|
1497
1396
|
# @option opts [Boolean] :memory Force open via memory
|
1498
1397
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1499
|
-
# @option opts [
|
1500
|
-
# @option opts [Boolean] :fail Fail on first error
|
1501
|
-
# @option opts [Boolean] :disc Open to disc
|
1398
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1502
1399
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1503
1400
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1504
1401
|
|
1505
|
-
# @!method self.
|
1506
|
-
# Load
|
1402
|
+
# @!method self.magickload_buffer(buffer, **opts)
|
1403
|
+
# Load buffer with imagemagick.
|
1507
1404
|
# @param buffer [VipsBlob] Buffer to load from
|
1508
1405
|
# @param opts [Hash] Set of options
|
1406
|
+
# @option opts [String] :density Canvas resolution for rendering vector formats like SVG
|
1509
1407
|
# @option opts [Integer] :page Load this page from the file
|
1510
1408
|
# @option opts [Integer] :n Load this many pages
|
1511
|
-
# @option opts [Boolean] :thumbnail Fetch thumbnail image
|
1512
|
-
# @option opts [Boolean] :autorotate Rotate image using exif orientation
|
1513
1409
|
# @option opts [Boolean] :memory Force open via memory
|
1514
1410
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1515
|
-
# @option opts [
|
1516
|
-
# @option opts [Boolean] :fail Fail on first error
|
1517
|
-
# @option opts [Boolean] :disc Open to disc
|
1411
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1518
1412
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1519
1413
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1520
1414
|
|
1521
|
-
# @!method self.
|
1522
|
-
# Load a
|
1415
|
+
# @!method self.fitsload(filename, **opts)
|
1416
|
+
# Load a fits image.
|
1417
|
+
# @param filename [String] Filename to load from
|
1418
|
+
# @param opts [Hash] Set of options
|
1419
|
+
# @option opts [Boolean] :memory Force open via memory
|
1420
|
+
# @option opts [Vips::Access] :access Required access pattern for this file
|
1421
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1422
|
+
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1423
|
+
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1424
|
+
|
1425
|
+
# @!method self.fitsload_source(source, **opts)
|
1426
|
+
# Load fits from a source.
|
1523
1427
|
# @param source [Vips::Source] Source to load from
|
1524
1428
|
# @param opts [Hash] Set of options
|
1525
|
-
# @option opts [Integer] :page Load this page from the file
|
1526
|
-
# @option opts [Integer] :n Load this many pages
|
1527
|
-
# @option opts [Boolean] :thumbnail Fetch thumbnail image
|
1528
|
-
# @option opts [Boolean] :autorotate Rotate image using exif orientation
|
1529
1429
|
# @option opts [Boolean] :memory Force open via memory
|
1530
1430
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1531
|
-
# @option opts [
|
1532
|
-
# @option opts [Boolean] :fail Fail on first error
|
1533
|
-
# @option opts [Boolean] :disc Open to disc
|
1431
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1534
1432
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1535
1433
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1536
1434
|
|
1537
|
-
# @!method self.
|
1538
|
-
# Load
|
1435
|
+
# @!method self.openexrload(filename, **opts)
|
1436
|
+
# Load an openexr image.
|
1539
1437
|
# @param filename [String] Filename to load from
|
1540
1438
|
# @param opts [Hash] Set of options
|
1541
|
-
# @option opts [Integer] :page Load this page from the file
|
1542
|
-
# @option opts [Integer] :n Load this many pages
|
1543
|
-
# @option opts [Float] :dpi Render at this DPI
|
1544
|
-
# @option opts [Float] :scale Scale output by this factor
|
1545
|
-
# @option opts [Array<Double>] :background Background value
|
1546
1439
|
# @option opts [Boolean] :memory Force open via memory
|
1547
1440
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1548
|
-
# @option opts [
|
1549
|
-
# @option opts [Boolean] :fail Fail on first error
|
1550
|
-
# @option opts [Boolean] :disc Open to disc
|
1441
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1551
1442
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1552
1443
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1553
1444
|
|
1554
|
-
# @!method self.
|
1555
|
-
# Load
|
1556
|
-
# @param
|
1445
|
+
# @!method self.niftiload(filename, **opts)
|
1446
|
+
# Load nifti volume.
|
1447
|
+
# @param filename [String] Filename to load from
|
1557
1448
|
# @param opts [Hash] Set of options
|
1558
|
-
# @option opts [Integer] :page Load this page from the file
|
1559
|
-
# @option opts [Integer] :n Load this many pages
|
1560
|
-
# @option opts [Float] :dpi Render at this DPI
|
1561
|
-
# @option opts [Float] :scale Scale output by this factor
|
1562
|
-
# @option opts [Array<Double>] :background Background value
|
1563
1449
|
# @option opts [Boolean] :memory Force open via memory
|
1564
1450
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1565
|
-
# @option opts [
|
1566
|
-
# @option opts [Boolean] :fail Fail on first error
|
1567
|
-
# @option opts [Boolean] :disc Open to disc
|
1451
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1568
1452
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1569
1453
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1570
1454
|
|
1571
|
-
# @!method self.
|
1572
|
-
# Load
|
1455
|
+
# @!method self.niftiload_source(source, **opts)
|
1456
|
+
# Load nifti volumes.
|
1573
1457
|
# @param source [Vips::Source] Source to load from
|
1574
1458
|
# @param opts [Hash] Set of options
|
1575
|
-
# @option opts [Integer] :page Load this page from the file
|
1576
|
-
# @option opts [Integer] :n Load this many pages
|
1577
|
-
# @option opts [Float] :dpi Render at this DPI
|
1578
|
-
# @option opts [Float] :scale Scale output by this factor
|
1579
|
-
# @option opts [Array<Double>] :background Background value
|
1580
1459
|
# @option opts [Boolean] :memory Force open via memory
|
1581
1460
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1582
|
-
# @option opts [
|
1583
|
-
# @option opts [Boolean] :fail Fail on first error
|
1584
|
-
# @option opts [Boolean] :disc Open to disc
|
1461
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1585
1462
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1586
1463
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1587
1464
|
|
1588
|
-
# @!method self.
|
1589
|
-
# Load
|
1465
|
+
# @!method self.heifload(filename, **opts)
|
1466
|
+
# Load a heif image.
|
1590
1467
|
# @param filename [String] Filename to load from
|
1591
1468
|
# @param opts [Hash] Set of options
|
1592
|
-
# @option opts [Boolean] :all_frames Read all frames from an image
|
1593
|
-
# @option opts [String] :density Canvas resolution for rendering vector formats like SVG
|
1594
1469
|
# @option opts [Integer] :page Load this page from the file
|
1595
1470
|
# @option opts [Integer] :n Load this many pages
|
1471
|
+
# @option opts [Boolean] :thumbnail Fetch thumbnail image
|
1596
1472
|
# @option opts [Boolean] :memory Force open via memory
|
1597
1473
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1598
|
-
# @option opts [
|
1599
|
-
# @option opts [Boolean] :fail Fail on first error
|
1600
|
-
# @option opts [Boolean] :disc Open to disc
|
1474
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1601
1475
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1602
1476
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1603
1477
|
|
1604
|
-
# @!method self.
|
1605
|
-
# Load
|
1478
|
+
# @!method self.heifload_buffer(buffer, **opts)
|
1479
|
+
# Load a heif image.
|
1606
1480
|
# @param buffer [VipsBlob] Buffer to load from
|
1607
1481
|
# @param opts [Hash] Set of options
|
1608
|
-
# @option opts [Boolean] :all_frames Read all frames from an image
|
1609
|
-
# @option opts [String] :density Canvas resolution for rendering vector formats like SVG
|
1610
1482
|
# @option opts [Integer] :page Load this page from the file
|
1611
1483
|
# @option opts [Integer] :n Load this many pages
|
1484
|
+
# @option opts [Boolean] :thumbnail Fetch thumbnail image
|
1485
|
+
# @option opts [Boolean] :memory Force open via memory
|
1486
|
+
# @option opts [Vips::Access] :access Required access pattern for this file
|
1487
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1488
|
+
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1489
|
+
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1490
|
+
|
1491
|
+
# @!method self.heifload_source(source, **opts)
|
1492
|
+
# Load a heif image.
|
1493
|
+
# @param source [Vips::Source] Source to load from
|
1494
|
+
# @param opts [Hash] Set of options
|
1495
|
+
# @option opts [Integer] :page Load this page from the file
|
1496
|
+
# @option opts [Integer] :n Load this many pages
|
1497
|
+
# @option opts [Boolean] :thumbnail Fetch thumbnail image
|
1612
1498
|
# @option opts [Boolean] :memory Force open via memory
|
1613
1499
|
# @option opts [Vips::Access] :access Required access pattern for this file
|
1614
|
-
# @option opts [
|
1615
|
-
# @option opts [Boolean] :fail Fail on first error
|
1616
|
-
# @option opts [Boolean] :disc Open to disc
|
1500
|
+
# @option opts [Vips::FailOn] :fail_on Error level to fail on
|
1617
1501
|
# @option opts [Vips::ForeignFlags] :flags Output Flags for this file
|
1618
1502
|
# @return [Vips::Image, Hash<Symbol => Object>] Output image, Hash of optional output items
|
1619
1503
|
|
@@ -1703,8 +1587,8 @@ module Vips
|
|
1703
1587
|
# Save image to ppm file.
|
1704
1588
|
# @param filename [String] Filename to save to
|
1705
1589
|
# @param opts [Hash] Set of options
|
1590
|
+
# @option opts [Vips::ForeignPpmFormat] :format Format to save in
|
1706
1591
|
# @option opts [Boolean] :ascii save as ascii
|
1707
|
-
# @option opts [Boolean] :squash save as one bit
|
1708
1592
|
# @option opts [Integer] :bitdepth set to 1 to write as a 1 bit image
|
1709
1593
|
# @option opts [Boolean] :strip Strip all metadata from image
|
1710
1594
|
# @option opts [Array<Double>] :background Background value
|
@@ -1715,8 +1599,8 @@ module Vips
|
|
1715
1599
|
# Save to ppm.
|
1716
1600
|
# @param target [Vips::Target] Target to save to
|
1717
1601
|
# @param opts [Hash] Set of options
|
1602
|
+
# @option opts [Vips::ForeignPpmFormat] :format Format to save in
|
1718
1603
|
# @option opts [Boolean] :ascii save as ascii
|
1719
|
-
# @option opts [Boolean] :squash save as one bit
|
1720
1604
|
# @option opts [Integer] :bitdepth set to 1 to write as a 1 bit image
|
1721
1605
|
# @option opts [Boolean] :strip Strip all metadata from image
|
1722
1606
|
# @option opts [Array<Double>] :background Background value
|
@@ -1831,18 +1715,50 @@ module Vips
|
|
1831
1715
|
# @option opts [Integer] :page_height Set page height for multipage save
|
1832
1716
|
# @return [nil]
|
1833
1717
|
|
1718
|
+
# @!method gifsave(filename, **opts)
|
1719
|
+
# Save as gif.
|
1720
|
+
# @param filename [String] Filename to save to
|
1721
|
+
# @param opts [Hash] Set of options
|
1722
|
+
# @option opts [Float] :dither Amount of dithering
|
1723
|
+
# @option opts [Integer] :effort Quantisation effort
|
1724
|
+
# @option opts [Integer] :bitdepth Number of bits per pixel
|
1725
|
+
# @option opts [Boolean] :strip Strip all metadata from image
|
1726
|
+
# @option opts [Array<Double>] :background Background value
|
1727
|
+
# @option opts [Integer] :page_height Set page height for multipage save
|
1728
|
+
# @return [nil]
|
1729
|
+
|
1730
|
+
# @!method gifsave_buffer(**opts)
|
1731
|
+
# Save as gif.
|
1732
|
+
# @param opts [Hash] Set of options
|
1733
|
+
# @option opts [Float] :dither Amount of dithering
|
1734
|
+
# @option opts [Integer] :effort Quantisation effort
|
1735
|
+
# @option opts [Integer] :bitdepth Number of bits per pixel
|
1736
|
+
# @option opts [Boolean] :strip Strip all metadata from image
|
1737
|
+
# @option opts [Array<Double>] :background Background value
|
1738
|
+
# @option opts [Integer] :page_height Set page height for multipage save
|
1739
|
+
# @return [VipsBlob] Buffer to save to
|
1740
|
+
|
1741
|
+
# @!method gifsave_target(target, **opts)
|
1742
|
+
# Save as gif.
|
1743
|
+
# @param target [Vips::Target] Target to save to
|
1744
|
+
# @param opts [Hash] Set of options
|
1745
|
+
# @option opts [Float] :dither Amount of dithering
|
1746
|
+
# @option opts [Integer] :effort Quantisation effort
|
1747
|
+
# @option opts [Integer] :bitdepth Number of bits per pixel
|
1748
|
+
# @option opts [Boolean] :strip Strip all metadata from image
|
1749
|
+
# @option opts [Array<Double>] :background Background value
|
1750
|
+
# @option opts [Integer] :page_height Set page height for multipage save
|
1751
|
+
# @return [nil]
|
1752
|
+
|
1834
1753
|
# @!method dzsave(filename, **opts)
|
1835
1754
|
# Save image to deepzoom file.
|
1836
1755
|
# @param filename [String] Filename to save to
|
1837
1756
|
# @param opts [Hash] Set of options
|
1838
|
-
# @option opts [String] :dirname Directory name to save to
|
1839
1757
|
# @option opts [String] :basename Base name to save to
|
1840
1758
|
# @option opts [Vips::ForeignDzLayout] :layout Directory layout
|
1841
1759
|
# @option opts [String] :suffix Filename suffix for tiles
|
1842
1760
|
# @option opts [Integer] :overlap Tile overlap in pixels
|
1843
1761
|
# @option opts [Integer] :tile_size Tile size in pixels
|
1844
|
-
# @option opts [Integer] :tile_height Tile height in pixels
|
1845
|
-
# @option opts [Integer] :tile_width Tile width in pixels
|
1846
1762
|
# @option opts [Boolean] :centre Center image in tile
|
1847
1763
|
# @option opts [Vips::ForeignDzDepth] :depth Pyramid depth
|
1848
1764
|
# @option opts [Vips::Angle] :angle Rotate image during save
|
@@ -1861,14 +1777,11 @@ module Vips
|
|
1861
1777
|
# @!method dzsave_buffer(**opts)
|
1862
1778
|
# Save image to dz buffer.
|
1863
1779
|
# @param opts [Hash] Set of options
|
1864
|
-
# @option opts [String] :dirname Directory name to save to
|
1865
1780
|
# @option opts [String] :basename Base name to save to
|
1866
1781
|
# @option opts [Vips::ForeignDzLayout] :layout Directory layout
|
1867
1782
|
# @option opts [String] :suffix Filename suffix for tiles
|
1868
1783
|
# @option opts [Integer] :overlap Tile overlap in pixels
|
1869
1784
|
# @option opts [Integer] :tile_size Tile size in pixels
|
1870
|
-
# @option opts [Integer] :tile_height Tile height in pixels
|
1871
|
-
# @option opts [Integer] :tile_width Tile width in pixels
|
1872
1785
|
# @option opts [Boolean] :centre Center image in tile
|
1873
1786
|
# @option opts [Vips::ForeignDzDepth] :depth Pyramid depth
|
1874
1787
|
# @option opts [Vips::Angle] :angle Rotate image during save
|
@@ -1893,10 +1806,10 @@ module Vips
|
|
1893
1806
|
# @option opts [String] :profile ICC profile to embed
|
1894
1807
|
# @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
|
1895
1808
|
# @option opts [Boolean] :palette Quantise to 8bpp palette
|
1896
|
-
# @option opts [Integer] :colours Max number of palette colours
|
1897
1809
|
# @option opts [Integer] :Q Quantisation quality
|
1898
1810
|
# @option opts [Float] :dither Amount of dithering
|
1899
1811
|
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
|
1812
|
+
# @option opts [Integer] :effort Quantisation CPU effort
|
1900
1813
|
# @option opts [Boolean] :strip Strip all metadata from image
|
1901
1814
|
# @option opts [Array<Double>] :background Background value
|
1902
1815
|
# @option opts [Integer] :page_height Set page height for multipage save
|
@@ -1910,10 +1823,10 @@ module Vips
|
|
1910
1823
|
# @option opts [String] :profile ICC profile to embed
|
1911
1824
|
# @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
|
1912
1825
|
# @option opts [Boolean] :palette Quantise to 8bpp palette
|
1913
|
-
# @option opts [Integer] :colours Max number of palette colours
|
1914
1826
|
# @option opts [Integer] :Q Quantisation quality
|
1915
1827
|
# @option opts [Float] :dither Amount of dithering
|
1916
1828
|
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
|
1829
|
+
# @option opts [Integer] :effort Quantisation CPU effort
|
1917
1830
|
# @option opts [Boolean] :strip Strip all metadata from image
|
1918
1831
|
# @option opts [Array<Double>] :background Background value
|
1919
1832
|
# @option opts [Integer] :page_height Set page height for multipage save
|
@@ -1928,10 +1841,10 @@ module Vips
|
|
1928
1841
|
# @option opts [String] :profile ICC profile to embed
|
1929
1842
|
# @option opts [Vips::ForeignPngFilter] :filter libpng row filter flag(s)
|
1930
1843
|
# @option opts [Boolean] :palette Quantise to 8bpp palette
|
1931
|
-
# @option opts [Integer] :colours Max number of palette colours
|
1932
1844
|
# @option opts [Integer] :Q Quantisation quality
|
1933
1845
|
# @option opts [Float] :dither Amount of dithering
|
1934
1846
|
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
|
1847
|
+
# @option opts [Integer] :effort Quantisation CPU effort
|
1935
1848
|
# @option opts [Boolean] :strip Strip all metadata from image
|
1936
1849
|
# @option opts [Array<Double>] :background Background value
|
1937
1850
|
# @option opts [Integer] :page_height Set page height for multipage save
|
@@ -1945,12 +1858,12 @@ module Vips
|
|
1945
1858
|
# @option opts [String] :profile ICC profile to embed
|
1946
1859
|
# @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
|
1947
1860
|
# @option opts [Boolean] :interlace Generate an interlaced (progressive) jpeg
|
1948
|
-
# @option opts [Boolean] :no_subsample Disable chroma subsample
|
1949
1861
|
# @option opts [Boolean] :trellis_quant Apply trellis quantisation to each 8x8 block
|
1950
1862
|
# @option opts [Boolean] :overshoot_deringing Apply overshooting to samples with extreme values
|
1951
1863
|
# @option opts [Boolean] :optimize_scans Split spectrum of DCT coefficients into separate scans
|
1952
1864
|
# @option opts [Integer] :quant_table Use predefined quantization table with given index
|
1953
1865
|
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
|
1866
|
+
# @option opts [Integer] :restart_interval Add restart markers every specified number of mcu
|
1954
1867
|
# @option opts [Boolean] :strip Strip all metadata from image
|
1955
1868
|
# @option opts [Array<Double>] :background Background value
|
1956
1869
|
# @option opts [Integer] :page_height Set page height for multipage save
|
@@ -1963,12 +1876,12 @@ module Vips
|
|
1963
1876
|
# @option opts [String] :profile ICC profile to embed
|
1964
1877
|
# @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
|
1965
1878
|
# @option opts [Boolean] :interlace Generate an interlaced (progressive) jpeg
|
1966
|
-
# @option opts [Boolean] :no_subsample Disable chroma subsample
|
1967
1879
|
# @option opts [Boolean] :trellis_quant Apply trellis quantisation to each 8x8 block
|
1968
1880
|
# @option opts [Boolean] :overshoot_deringing Apply overshooting to samples with extreme values
|
1969
1881
|
# @option opts [Boolean] :optimize_scans Split spectrum of DCT coefficients into separate scans
|
1970
1882
|
# @option opts [Integer] :quant_table Use predefined quantization table with given index
|
1971
1883
|
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
|
1884
|
+
# @option opts [Integer] :restart_interval Add restart markers every specified number of mcu
|
1972
1885
|
# @option opts [Boolean] :strip Strip all metadata from image
|
1973
1886
|
# @option opts [Array<Double>] :background Background value
|
1974
1887
|
# @option opts [Integer] :page_height Set page height for multipage save
|
@@ -1982,12 +1895,12 @@ module Vips
|
|
1982
1895
|
# @option opts [String] :profile ICC profile to embed
|
1983
1896
|
# @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
|
1984
1897
|
# @option opts [Boolean] :interlace Generate an interlaced (progressive) jpeg
|
1985
|
-
# @option opts [Boolean] :no_subsample Disable chroma subsample
|
1986
1898
|
# @option opts [Boolean] :trellis_quant Apply trellis quantisation to each 8x8 block
|
1987
1899
|
# @option opts [Boolean] :overshoot_deringing Apply overshooting to samples with extreme values
|
1988
1900
|
# @option opts [Boolean] :optimize_scans Split spectrum of DCT coefficients into separate scans
|
1989
1901
|
# @option opts [Integer] :quant_table Use predefined quantization table with given index
|
1990
1902
|
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
|
1903
|
+
# @option opts [Integer] :restart_interval Add restart markers every specified number of mcu
|
1991
1904
|
# @option opts [Boolean] :strip Strip all metadata from image
|
1992
1905
|
# @option opts [Array<Double>] :background Background value
|
1993
1906
|
# @option opts [Integer] :page_height Set page height for multipage save
|
@@ -2000,12 +1913,12 @@ module Vips
|
|
2000
1913
|
# @option opts [String] :profile ICC profile to embed
|
2001
1914
|
# @option opts [Boolean] :optimize_coding Compute optimal Huffman coding tables
|
2002
1915
|
# @option opts [Boolean] :interlace Generate an interlaced (progressive) jpeg
|
2003
|
-
# @option opts [Boolean] :no_subsample Disable chroma subsample
|
2004
1916
|
# @option opts [Boolean] :trellis_quant Apply trellis quantisation to each 8x8 block
|
2005
1917
|
# @option opts [Boolean] :overshoot_deringing Apply overshooting to samples with extreme values
|
2006
1918
|
# @option opts [Boolean] :optimize_scans Split spectrum of DCT coefficients into separate scans
|
2007
1919
|
# @option opts [Integer] :quant_table Use predefined quantization table with given index
|
2008
1920
|
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
|
1921
|
+
# @option opts [Integer] :restart_interval Add restart markers every specified number of mcu
|
2009
1922
|
# @option opts [Boolean] :strip Strip all metadata from image
|
2010
1923
|
# @option opts [Array<Double>] :background Background value
|
2011
1924
|
# @option opts [Integer] :page_height Set page height for multipage save
|
@@ -2024,7 +1937,7 @@ module Vips
|
|
2024
1937
|
# @option opts [Boolean] :min_size Optimise for minium size
|
2025
1938
|
# @option opts [Integer] :kmin Minimum number of frames between key frames
|
2026
1939
|
# @option opts [Integer] :kmax Maximum number of frames between key frames
|
2027
|
-
# @option opts [Integer] :
|
1940
|
+
# @option opts [Integer] :effort Level of CPU effort to reduce file size
|
2028
1941
|
# @option opts [String] :profile ICC profile to embed
|
2029
1942
|
# @option opts [Boolean] :strip Strip all metadata from image
|
2030
1943
|
# @option opts [Array<Double>] :background Background value
|
@@ -2043,7 +1956,7 @@ module Vips
|
|
2043
1956
|
# @option opts [Boolean] :min_size Optimise for minium size
|
2044
1957
|
# @option opts [Integer] :kmin Minimum number of frames between key frames
|
2045
1958
|
# @option opts [Integer] :kmax Maximum number of frames between key frames
|
2046
|
-
# @option opts [Integer] :
|
1959
|
+
# @option opts [Integer] :effort Level of CPU effort to reduce file size
|
2047
1960
|
# @option opts [String] :profile ICC profile to embed
|
2048
1961
|
# @option opts [Boolean] :strip Strip all metadata from image
|
2049
1962
|
# @option opts [Array<Double>] :background Background value
|
@@ -2063,7 +1976,7 @@ module Vips
|
|
2063
1976
|
# @option opts [Boolean] :min_size Optimise for minium size
|
2064
1977
|
# @option opts [Integer] :kmin Minimum number of frames between key frames
|
2065
1978
|
# @option opts [Integer] :kmax Maximum number of frames between key frames
|
2066
|
-
# @option opts [Integer] :
|
1979
|
+
# @option opts [Integer] :effort Level of CPU effort to reduce file size
|
2067
1980
|
# @option opts [String] :profile ICC profile to embed
|
2068
1981
|
# @option opts [Boolean] :strip Strip all metadata from image
|
2069
1982
|
# @option opts [Array<Double>] :background Background value
|
@@ -2082,14 +1995,12 @@ module Vips
|
|
2082
1995
|
# @option opts [Integer] :tile_width Tile width in pixels
|
2083
1996
|
# @option opts [Integer] :tile_height Tile height in pixels
|
2084
1997
|
# @option opts [Boolean] :pyramid Write a pyramidal tiff
|
2085
|
-
# @option opts [Boolean] :squash Squash images down to 1 bit
|
2086
1998
|
# @option opts [Boolean] :miniswhite Use 0 for white in 1-bit images
|
2087
1999
|
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
|
2088
2000
|
# @option opts [Vips::ForeignTiffResunit] :resunit Resolution unit
|
2089
2001
|
# @option opts [Float] :xres Horizontal resolution in pixels/mm
|
2090
2002
|
# @option opts [Float] :yres Vertical resolution in pixels/mm
|
2091
2003
|
# @option opts [Boolean] :bigtiff Write a bigtiff image
|
2092
|
-
# @option opts [Boolean] :rgbjpeg Output RGB JPEG rather than YCbCr
|
2093
2004
|
# @option opts [Boolean] :properties Write a properties document to IMAGEDESCRIPTION
|
2094
2005
|
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
|
2095
2006
|
# @option opts [Integer] :level ZSTD compression level
|
@@ -2113,14 +2024,12 @@ module Vips
|
|
2113
2024
|
# @option opts [Integer] :tile_width Tile width in pixels
|
2114
2025
|
# @option opts [Integer] :tile_height Tile height in pixels
|
2115
2026
|
# @option opts [Boolean] :pyramid Write a pyramidal tiff
|
2116
|
-
# @option opts [Boolean] :squash Squash images down to 1 bit
|
2117
2027
|
# @option opts [Boolean] :miniswhite Use 0 for white in 1-bit images
|
2118
2028
|
# @option opts [Integer] :bitdepth Write as a 1, 2, 4 or 8 bit image
|
2119
2029
|
# @option opts [Vips::ForeignTiffResunit] :resunit Resolution unit
|
2120
2030
|
# @option opts [Float] :xres Horizontal resolution in pixels/mm
|
2121
2031
|
# @option opts [Float] :yres Vertical resolution in pixels/mm
|
2122
2032
|
# @option opts [Boolean] :bigtiff Write a bigtiff image
|
2123
|
-
# @option opts [Boolean] :rgbjpeg Output RGB JPEG rather than YCbCr
|
2124
2033
|
# @option opts [Boolean] :properties Write a properties document to IMAGEDESCRIPTION
|
2125
2034
|
# @option opts [Vips::RegionShrink] :region_shrink Method to shrink regions
|
2126
2035
|
# @option opts [Integer] :level ZSTD compression level
|
@@ -2133,6 +2042,31 @@ module Vips
|
|
2133
2042
|
# @option opts [Integer] :page_height Set page height for multipage save
|
2134
2043
|
# @return [VipsBlob] Buffer to save to
|
2135
2044
|
|
2045
|
+
# @!method magicksave(filename, **opts)
|
2046
|
+
# Save file with imagemagick.
|
2047
|
+
# @param filename [String] Filename to save to
|
2048
|
+
# @param opts [Hash] Set of options
|
2049
|
+
# @option opts [String] :format Format to save in
|
2050
|
+
# @option opts [Integer] :quality Quality to use
|
2051
|
+
# @option opts [Boolean] :optimize_gif_frames Apply GIF frames optimization
|
2052
|
+
# @option opts [Boolean] :optimize_gif_transparency Apply GIF transparency optimization
|
2053
|
+
# @option opts [Boolean] :strip Strip all metadata from image
|
2054
|
+
# @option opts [Array<Double>] :background Background value
|
2055
|
+
# @option opts [Integer] :page_height Set page height for multipage save
|
2056
|
+
# @return [nil]
|
2057
|
+
|
2058
|
+
# @!method magicksave_buffer(**opts)
|
2059
|
+
# Save image to magick buffer.
|
2060
|
+
# @param opts [Hash] Set of options
|
2061
|
+
# @option opts [String] :format Format to save in
|
2062
|
+
# @option opts [Integer] :quality Quality to use
|
2063
|
+
# @option opts [Boolean] :optimize_gif_frames Apply GIF frames optimization
|
2064
|
+
# @option opts [Boolean] :optimize_gif_transparency Apply GIF transparency optimization
|
2065
|
+
# @option opts [Boolean] :strip Strip all metadata from image
|
2066
|
+
# @option opts [Array<Double>] :background Background value
|
2067
|
+
# @option opts [Integer] :page_height Set page height for multipage save
|
2068
|
+
# @return [VipsBlob] Buffer to save to
|
2069
|
+
|
2136
2070
|
# @!method fitssave(filename, **opts)
|
2137
2071
|
# Save image to fits file.
|
2138
2072
|
# @param filename [String] Filename to save to
|
@@ -2158,7 +2092,7 @@ module Vips
|
|
2158
2092
|
# @option opts [Integer] :Q Q factor
|
2159
2093
|
# @option opts [Boolean] :lossless Enable lossless compression
|
2160
2094
|
# @option opts [Vips::ForeignHeifCompression] :compression Compression format
|
2161
|
-
# @option opts [Integer] :
|
2095
|
+
# @option opts [Integer] :effort CPU effort
|
2162
2096
|
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
|
2163
2097
|
# @option opts [Boolean] :strip Strip all metadata from image
|
2164
2098
|
# @option opts [Array<Double>] :background Background value
|
@@ -2171,7 +2105,7 @@ module Vips
|
|
2171
2105
|
# @option opts [Integer] :Q Q factor
|
2172
2106
|
# @option opts [Boolean] :lossless Enable lossless compression
|
2173
2107
|
# @option opts [Vips::ForeignHeifCompression] :compression Compression format
|
2174
|
-
# @option opts [Integer] :
|
2108
|
+
# @option opts [Integer] :effort CPU effort
|
2175
2109
|
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
|
2176
2110
|
# @option opts [Boolean] :strip Strip all metadata from image
|
2177
2111
|
# @option opts [Array<Double>] :background Background value
|
@@ -2185,38 +2119,13 @@ module Vips
|
|
2185
2119
|
# @option opts [Integer] :Q Q factor
|
2186
2120
|
# @option opts [Boolean] :lossless Enable lossless compression
|
2187
2121
|
# @option opts [Vips::ForeignHeifCompression] :compression Compression format
|
2188
|
-
# @option opts [Integer] :
|
2122
|
+
# @option opts [Integer] :effort CPU effort
|
2189
2123
|
# @option opts [Vips::ForeignSubsample] :subsample_mode Select chroma subsample operation mode
|
2190
2124
|
# @option opts [Boolean] :strip Strip all metadata from image
|
2191
2125
|
# @option opts [Array<Double>] :background Background value
|
2192
2126
|
# @option opts [Integer] :page_height Set page height for multipage save
|
2193
2127
|
# @return [nil]
|
2194
2128
|
|
2195
|
-
# @!method magicksave(filename, **opts)
|
2196
|
-
# Save file with imagemagick.
|
2197
|
-
# @param filename [String] Filename to save to
|
2198
|
-
# @param opts [Hash] Set of options
|
2199
|
-
# @option opts [String] :format Format to save in
|
2200
|
-
# @option opts [Integer] :quality Quality to use
|
2201
|
-
# @option opts [Boolean] :optimize_gif_frames Apply GIF frames optimization
|
2202
|
-
# @option opts [Boolean] :optimize_gif_transparency Apply GIF transparency optimization
|
2203
|
-
# @option opts [Boolean] :strip Strip all metadata from image
|
2204
|
-
# @option opts [Array<Double>] :background Background value
|
2205
|
-
# @option opts [Integer] :page_height Set page height for multipage save
|
2206
|
-
# @return [nil]
|
2207
|
-
|
2208
|
-
# @!method magicksave_buffer(**opts)
|
2209
|
-
# Save image to magick buffer.
|
2210
|
-
# @param opts [Hash] Set of options
|
2211
|
-
# @option opts [String] :format Format to save in
|
2212
|
-
# @option opts [Integer] :quality Quality to use
|
2213
|
-
# @option opts [Boolean] :optimize_gif_frames Apply GIF frames optimization
|
2214
|
-
# @option opts [Boolean] :optimize_gif_transparency Apply GIF transparency optimization
|
2215
|
-
# @option opts [Boolean] :strip Strip all metadata from image
|
2216
|
-
# @option opts [Array<Double>] :background Background value
|
2217
|
-
# @option opts [Integer] :page_height Set page height for multipage save
|
2218
|
-
# @return [VipsBlob] Buffer to save to
|
2219
|
-
|
2220
2129
|
# @!method self.thumbnail(filename, width, **opts)
|
2221
2130
|
# Generate thumbnail from file.
|
2222
2131
|
# @param filename [String] Filename to read from
|
@@ -2230,7 +2139,6 @@ module Vips
|
|
2230
2139
|
# @option opts [String] :import_profile Fallback import profile
|
2231
2140
|
# @option opts [String] :export_profile Fallback export profile
|
2232
2141
|
# @option opts [Vips::Intent] :intent Rendering intent
|
2233
|
-
# @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
|
2234
2142
|
# @return [Vips::Image] Output image
|
2235
2143
|
|
2236
2144
|
# @!method self.thumbnail_buffer(buffer, width, **opts)
|
@@ -2247,7 +2155,6 @@ module Vips
|
|
2247
2155
|
# @option opts [String] :import_profile Fallback import profile
|
2248
2156
|
# @option opts [String] :export_profile Fallback export profile
|
2249
2157
|
# @option opts [Vips::Intent] :intent Rendering intent
|
2250
|
-
# @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
|
2251
2158
|
# @return [Vips::Image] Output image
|
2252
2159
|
|
2253
2160
|
# @!method thumbnail_image(width, **opts)
|
@@ -2262,7 +2169,6 @@ module Vips
|
|
2262
2169
|
# @option opts [String] :import_profile Fallback import profile
|
2263
2170
|
# @option opts [String] :export_profile Fallback export profile
|
2264
2171
|
# @option opts [Vips::Intent] :intent Rendering intent
|
2265
|
-
# @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
|
2266
2172
|
# @return [Vips::Image] Output image
|
2267
2173
|
|
2268
2174
|
# @!method self.thumbnail_source(source, width, **opts)
|
@@ -2279,7 +2185,6 @@ module Vips
|
|
2279
2185
|
# @option opts [String] :import_profile Fallback import profile
|
2280
2186
|
# @option opts [String] :export_profile Fallback export profile
|
2281
2187
|
# @option opts [Vips::Intent] :intent Rendering intent
|
2282
|
-
# @option opts [Boolean] :auto_rotate Use orientation tags to rotate image upright
|
2283
2188
|
# @return [Vips::Image] Output image
|
2284
2189
|
|
2285
2190
|
# @!method mapim(index, **opts)
|
@@ -2294,40 +2199,32 @@ module Vips
|
|
2294
2199
|
# @param hshrink [Float] Horizontal shrink factor
|
2295
2200
|
# @param vshrink [Float] Vertical shrink factor
|
2296
2201
|
# @param opts [Hash] Set of options
|
2297
|
-
# @option opts [Float] :xshrink Horizontal shrink factor
|
2298
|
-
# @option opts [Float] :yshrink Vertical shrink factor
|
2299
2202
|
# @return [Vips::Image] Output image
|
2300
2203
|
|
2301
2204
|
# @!method shrinkh(hshrink, **opts)
|
2302
2205
|
# Shrink an image horizontally.
|
2303
2206
|
# @param hshrink [Integer] Horizontal shrink factor
|
2304
2207
|
# @param opts [Hash] Set of options
|
2305
|
-
# @option opts [Integer] :xshrink Horizontal shrink factor
|
2306
2208
|
# @return [Vips::Image] Output image
|
2307
2209
|
|
2308
2210
|
# @!method shrinkv(vshrink, **opts)
|
2309
2211
|
# Shrink an image vertically.
|
2310
2212
|
# @param vshrink [Integer] Vertical shrink factor
|
2311
2213
|
# @param opts [Hash] Set of options
|
2312
|
-
# @option opts [Integer] :yshrink Vertical shrink factor
|
2313
2214
|
# @return [Vips::Image] Output image
|
2314
2215
|
|
2315
2216
|
# @!method reduceh(hshrink, **opts)
|
2316
2217
|
# Shrink an image horizontally.
|
2317
2218
|
# @param hshrink [Float] Horizontal shrink factor
|
2318
2219
|
# @param opts [Hash] Set of options
|
2319
|
-
# @option opts [Float] :xshrink Horizontal shrink factor
|
2320
2220
|
# @option opts [Vips::Kernel] :kernel Resampling kernel
|
2321
|
-
# @option opts [Boolean] :centre Use centre sampling convention
|
2322
2221
|
# @return [Vips::Image] Output image
|
2323
2222
|
|
2324
2223
|
# @!method reducev(vshrink, **opts)
|
2325
2224
|
# Shrink an image vertically.
|
2326
2225
|
# @param vshrink [Float] Vertical shrink factor
|
2327
2226
|
# @param opts [Hash] Set of options
|
2328
|
-
# @option opts [Float] :yshrink Vertical shrink factor
|
2329
2227
|
# @option opts [Vips::Kernel] :kernel Resampling kernel
|
2330
|
-
# @option opts [Boolean] :centre Use centre sampling convention
|
2331
2228
|
# @return [Vips::Image] Output image
|
2332
2229
|
|
2333
2230
|
# @!method reduce(hshrink, vshrink, **opts)
|
@@ -2336,9 +2233,6 @@ module Vips
|
|
2336
2233
|
# @param vshrink [Float] Vertical shrink factor
|
2337
2234
|
# @param opts [Hash] Set of options
|
2338
2235
|
# @option opts [Vips::Kernel] :kernel Resampling kernel
|
2339
|
-
# @option opts [Boolean] :centre Use centre sampling convention
|
2340
|
-
# @option opts [Float] :xshrink Horizontal shrink factor
|
2341
|
-
# @option opts [Float] :yshrink Vertical shrink factor
|
2342
2236
|
# @return [Vips::Image] Output image
|
2343
2237
|
|
2344
2238
|
# @!method quadratic(coeff, **opts)
|
@@ -2392,12 +2286,8 @@ module Vips
|
|
2392
2286
|
# Resize an image.
|
2393
2287
|
# @param scale [Float] Scale image by this factor
|
2394
2288
|
# @param opts [Hash] Set of options
|
2395
|
-
# @option opts [Vips::Interpolate] :interpolate Interpolate pixels with this
|
2396
2289
|
# @option opts [Vips::Kernel] :kernel Resampling kernel
|
2397
|
-
# @option opts [Boolean] :centre Use centre sampling convention
|
2398
2290
|
# @option opts [Float] :vscale Vertical scale image by this factor
|
2399
|
-
# @option opts [Float] :idx Horizontal input displacement
|
2400
|
-
# @option opts [Float] :idy Vertical input displacement
|
2401
2291
|
# @return [Vips::Image] Output image
|
2402
2292
|
|
2403
2293
|
# @!method colourspace(space, **opts)
|
@@ -2744,7 +2634,6 @@ module Vips
|
|
2744
2634
|
# @!method sharpen(**opts)
|
2745
2635
|
# Unsharp masking for print.
|
2746
2636
|
# @param opts [Hash] Set of options
|
2747
|
-
# @option opts [Integer] :radius radius of Gaussian
|
2748
2637
|
# @option opts [Float] :sigma Sigma of Gaussian
|
2749
2638
|
# @option opts [Float] :x1 Flat/jaggy threshold
|
2750
2639
|
# @option opts [Float] :y2 Maximum brightening
|