マニュアル キャンセル

cfimage

  1. CFML リファレンスユーザーガイド
  2. ColdFusion 関数
    1. カテゴリ別の ColdFusion 関数
    2. 関数 a~b
      1. Abs
      2. ACos
      3. AddSOAPRequestHeader
      4. AddSOAPResponseHeader
      5. AjaxLink
      6. AjaxOnLoad
      7. ApplicationStop
      8. ArrayAppend
      9. ArrayAvg
      10. ArrayClear
      11. ArrayContains
      12. ArrayContainsNoCase
      13. ArrayDelete
      14. ArrayDeleteAt
      15. ArrayDeleteNoCase
      16. ArrayEach
      17. ArrayFilter
      18. ArrayFind
      19. ArrayFindAll
      20. ArrayFindAllNoCase
      21. ArrayFindNoCase
      22. ArrayInsertAt
      23. ArrayIsDefined
      24. ArrayIsEmpty
      25. ArrayLen
      26. ArrayMap
      27. ArrayMax
      28. ArrayMin
      29. ArrayNew
      30. ArrayPrepend
      31. ArrayReduce
      32. ArrayResize
      33. ArraySet
      34. ArraySetMetadata
      35. ArraySlice
      36. ArraySort
      37. ArraySum
      38. ArraySwap
      39. ArrayToList
      40. Asc
      41. ASin
      42. Atn
      43. AuthenticatedContext
      44. AuthenticatedUser
      45. BinaryDecode
      46. BinaryEncode
      47. BitAnd
      48. BitMaskClear
      49. BitMaskRead
      50. BitMaskSet
      51. BitNot
      52. BitOr
      53. BitSHLN
      54. BitSHRN
      55. BitXor
      56. BooleanFormat
    3. 関数 c~d
      1. CacheGet
      2. CacheGetAllIds
      3. CacheGetMetadata
      4. CacheGetProperties
      5. CacheGetSession
      6. CacheIdExists
      7. CachePut
      8. CacheRegionExists
      9. CacheRegionNew
      10. CacheRegionRemove
      11. CacheRemove
      12. CacheRemoveAll
      13. CacheSetProperties
      14. CallStackDump
      15. CallStackGet
      16. CanDeSerialize
      17. Canonicalize
      18. CanSerialize
      19. Ceiling
      20. CharsetDecode
      21. CharsetEncode
      22. Chr
      23. CJustify
      24. Compare
      25. CompareNoCase
      26. Cos
      27. CreateDate
      28. CreateDateTime
      29. CreateObject
      30. CreateObject:.NET オブジェクト
      31. CreateObject:COM オブジェクト
      32. CreateObject:コンポーネントオブジェクト
      33. CreateObject:CORBA オブジェクト
      34. CreateObject:Java または EJB オブジェクト
      35. CreateObject:web サービスオブジェクト
      36. CreateODBCDate
      37. CreateODBCDateTime
      38. CreateODBCTime
      39. CreateSignedJWT
      40. createEncryptedJWT
      41. CreateTime
      42. CreateTimeSpan
      43. CreateUUID
      44. CSRFGenerateToken
      45. CSRFVerifyToken
      46. CSVRead
      47. CSVWrite
      48. CSVProcess
      49. DateAdd
      50. DateCompare
      51. DateConvert
      52. DateDiff
      53. DateFormat
      54. DatePart
      55. DateTimeFormat
      56. Day
      57. DayOfWeek
      58. DayOfWeekAsString
      59. DayOfYear
      60. DaysInMonth
      61. DaysInYear
      62. DE
      63. DecimalFormat
      64. DecodeForHTML
      65. DecodeFromURL
      66. DecrementValue
      67. Decrypt
      68. DecryptBinary
      69. DeleteClientVariable
      70. Deserialize
      71. DeserializeJSON
      72. DeserializeXML
      73. DirectoryCopy
      74. DirectoryCreate
      75. DirectoryDelete
      76. DirectoryExists
      77. DirectoryList
      78. DirectoryRename
      79. DollarFormat
      80. DotNetToCFType
      81. Duplicate
    4. 関数 e~g
      1. EncodeForCSS
      2. EncodeForDN
      3. EncodeForHTML
      4. EncodeForHTMLAttribute
      5. EncodeForJavaScript
      6. EncodeForLDAP
      7. EncodeForURL
      8. EncodeForXML
      9. EncodeForXMLAttribute
      10. EncodeForXpath
      11. Encrypt
      12. EncryptBinary
      13. EntityDelete
      14. EntityLoad
      15. EntityLoadByExample
      16. EntityLoadByPK
      17. EntityMerge
      18. EntityNew
      19. EntityReload
      20. EntitySave
      21. EntityToQuery
      22. Evaluate
      23. Exp
      24. ExpandPath
      25. FileClose
      26. FileCopy
      27. FileDelete
      28. FileExists
      29. FileGetMimeType
      30. FileIsEOF
      31. FileMove
      32. FileOpen
      33. FileRead
      34. FileReadBinary
      35. FileReadLine
      36. FileSeek
      37. FileSetAccessMode
      38. FileSetAttribute
      39. FileSetLastModified
      40. FileSkipBytes
      41. FileUpload
      42. FileUploadAll
      43. FileWrite
      44. FileWriteLine
      45. Find
      46. FindNoCase
      47. FindOneOf
      48. FirstDayOfMonth
      49. Fix
      50. Floor
      51. FormatBaseN
      52. GeneratePBKDFKey
      53. GenerateSecretKey
      54.  GetApplicationMetadata
      55. GetAuthUser
      56. GetBaseTagData
      57. GetBaseTagList
      58. GetBaseTemplatePath
      59. GetClientVariablesList
      60. GetComponentMetaData
      61. GetContextRoot
      62. GetCPUUsage
      63. GetCurrentTemplatePath
      64. GetCSPNonce
      65. GetDirectoryFromPath
      66. GetEncoding
      67. GetException
      68. GetFileFromPath
      69. GetFileInfo
      70. GetFreeSpace
      71. GetFunctionCalledName
      72. GetFunctionList
      73. GetGatewayHelper
      74. GetHttpRequestData
      75. GetHttpTimeString
      76. GetK2ServerDocCount
      77. GetK2ServerDocCountLimit
      78. GetLocale
      79. GetLocaleDisplayName
      80. GetLocalHostIP
      81. GetMetaData
      82. GetMetricData
      83. GetPageContext
      84. GetPropertyString
      85. GetPropertyFile
      86. GetPrinterInfo
      87. GetPrinterList
      88. GetProfileSections
      89. GetProfileString
      90. GetReadableImageFormats
      91. GetSafeHTML
      92. GetSAMLAuthRequest
      93. GetSAMLLogoutRequest
      94. Generate3DesKey
      95. GenerateSAMLSPMetadata
      96. GetSOAPRequest
      97. GetSOAPRequestHeader
      98. GetSOAPResponse
      99. GetSOAPResponseHeader
      100. GetSystemFreeMemory
      101. GetSystemTotalMemory
      102. GetTempDirectory
      103. GetTempFile
      104. GetTemplatePath
      105. GetTickCount
      106. GetTimeZoneInfo
      107. GetToken
      108. GetTotalSpace
      109. GetUserRoles
      110. GetVFSMetaData
      111. GetWriteableImageFormats
    5. 関数 h~im
      1. Hash
      2. HMac
      3. Hour
      4. HQLMethods
      5. HTMLCodeFormat
      6. HTMLEditFormat
      7. IIf
      8. ImageAddBorder
      9. ImageBlur
      10. ImageClearRect
      11. ImageCopy
      12. ImageCreateCaptcha
      13. ImageCrop
      14. ImageDrawArc
      15. ImageDrawBeveledRect
      16. ImageDrawCubicCurve
      17. ImageDrawLine
      18. ImageDrawLines
      19. ImageDrawOval
      20. ImageDrawPoint
      21. ImageDrawQuadraticCurve
      22. ImageDrawRect
      23. ImageDrawRoundRect
      24. ImageDrawText
      25. ImageFlip
      26. ImageGetBlob
      27. ImageGetBufferedImage
      28. ImageGetEXIFMetadata
      29. ImageGetEXIFTag
      30. ImageGetHeight
      31. ImageGetIPTCMetadata
      32. ImageGetIPTCTag
      33. ImageGetMetadata
      34. ImageGetWidth
      35. ImageGrayscale
      36. ImageInfo
      37. ImageMakeColorTransparent
      38. ImageMakeTranslucent
      39. ImageNegative
      40. ImageNew
      41. ImageOverlay
      42. ImagePaste
      43. ImageRead
      44. ImageReadBase64
      45. ImageResize
      46. ImageRotate
      47. ImageRotateDrawingAxis
      48. ImageScaleToFit
      49. ImageSetAntialiasing
      50. ImageSetBackgroundColor
      51. ImageSetDrawingColor
      52. ImageSetDrawingStroke
      53. ImageSetDrawingTransparency
      54. ImageSharpen
      55. ImageShear
      56. ImageShearDrawingAxis
      57. ImageTranslate
      58. ImageTranslateDrawingAxis
      59. ImageWrite
      60. ImageWriteBase64
      61. ImageXORDrawingMode
    6. 関数 in~k
      1. IncrementValue
      2. InputBaseN
      3. Insert
      4. Int
      5. InterruptThread
      6. InvalidateOauthAccesstoken
      7. Invoke
      8. InitSAMLAuthRequest
      9. InitSAMLLogoutRequest
      10. InvokeCFClientFunction
      11. IsArray
      12. IsAuthenticated
      13. IsAuthorized
      14. IsBinary
      15. IsBoolean
      16. IsClosure
      17. IsCustomFunction
      18. IsDate
      19. IsDateObject
      20. IsDDX
      21. IsDebugMode
      22. IsDefined
      23. IsImage
      24. IsImageFile
      25. IsInstanceOf
      26. IsIPv6
      27. IsJSON
      28. IsK2ServerABroker
      29. IsK2ServerDocCountExceeded
      30. IsK2ServerOnline
      31. IsLeapYear
      32. IsLocalHost
      33. IsNull
      34. IsNumeric
      35. IsNumericDate
      36. IsObject
      37. isOnline
      38. IsPDFArchive
      39. IsPDFFile
      40. IsPDFObject
      41. IsProtected
      42. IsQuery
      43. isSamlLogoutResponse
      44. isSafeHTML
      45. IsSimpleValue
      46. IsSOAPRequest
      47. IsSpreadsheetFile
      48. IsSpreadsheetObject
      49. IsStruct
      50. isThreadInterrupted
      51. IsUserInAnyRole
      52. IsUserInRole
      53. IsUserLoggedIn
      54. IsValid
      55. IsValidOauthAccesstoken
      56. IsWDDX
      57. IsXML
      58. IsXmlAttribute
      59. IsXmlDoc
      60. IsXmlElem
      61. IsXmlNode
      62. IsXmlRoot
      63. JavaCast
      64. JSStringFormat
    7. 関数 l
      1. LCase
      2. Left
      3. Len
      4. ListAppend
      5. ListChangeDelims
      6. ListContains
      7. ListContainsNoCase
      8. ListDeleteAt
      9. ListEach
      10. ListFilter
      11. ListFind
      12. ListFindNoCase
      13. ListFirst
      14. ListGetAt
      15. ListGetDuplicates
      16. ListInsertAt
      17. ListLast
      18. ListLen
      19. ListMap
      20. ListPrepend
      21. ListQualify
      22. ListReduce
      23. ListRemoveDuplicates
      24. ListRest
      25. ListSetAt
      26. ListSort
      27. ListToArray
      28. ListValueCount
      29. ListValueCountNoCase
      30. LJustify
      31. Location
      32. Log
      33. Log10
      34. LSCurrencyFormat
      35. LSDateFormat
      36. LSDateTimeFormat
      37. LSEuroCurrencyFormat
      38. LSIsCurrency
      39. LSIsDate
      40. LSIsNumeric
      41. LSNumberFormat
      42. LSParseCurrency
      43. LSParseDateTime
      44. LSParseEuroCurrency
      45. LSParseNumber
      46. LSTimeFormat
      47. LTrim
    8. 関数 m~r
      1. Max
      2. Mid
      3. Min
      4. Minute
      5. Month
      6. MonthAsString
      7. Now
      8. NumberFormat
      9. ObjectEquals
      10. ObjectLoad
      11. ObjectSave
      12. OnWSAuthenticate
      13. ORMClearSession
      14. ORMCloseAllSessions
      15. ORMCloseSession
      16. ORMEvictCollection
      17. ORMEvictEntity
      18. ORMEvictQueries
      19. ORMExecuteQuery
      20. ORMFlush
      21. ORMFlushall
      22. ORMGetSession
      23. ORMGetSessionFactory
      24. ORMIndex
      25. ORMIndexPurge
      26. ORMReload
      27. ORMSearch
      28. ORMSearchOffline
      29. ParagraphFormat
      30. ParameterExists
      31. ParseDateTime
      32. Pi
      33. PrecisionEvaluate
      34. ProcessSAMLResponse
      35. ProcessSAMLLogoutRequest
      36. Quarter
      37. PreserveSingleQuotes
      38. QueryAddColumn
      39. QueryAddRow
      40. QueryConvertForGrid
      41. QueryExecute
      42. QueryFilter
      43. QueryGetResult
      44. QueryGetRow
      45. QueryKeyExists
      46. QueryMap
      47. QueryNew
      48. QueryReduce
      49. QuerySetCell
      50. QuotedValueList
      51. QueryEach
      52. Rand
      53. Randomize
      54. RandRange
      55. ReEscape
      56. REFind
      57. REFindNoCase
      58. ReleaseComObject
      59. REMatch
      60. REMatchNoCase
      61. RemoveCachedQuery
      62. RemoveChars
      63. RepeatString
      64. Replace
      65. ReplaceList
      66. ReplaceNoCase
      67. REReplace
      68. REReplaceNoCase
      69. RestDeleteApplication
      70. RestSetResponse
      71. RestInitApplication
      72. Reverse
      73. Right
      74. RJustify
      75. Round
      76. RTrim
    9. 関数 s
      1. second
      2. SendGatewayMessage
      3. SendSAMLLogoutResponse
      4. Serialize
      5. SerializeJSON
      6. SerializeXML
      7. SessionInvalidate
      8. SessionRotate
      9. SessionGetMetaData
      10. SessionInvalidate
      11. SessionRotate
      12. SetDay
      13. SetEncoding
      14. SetHour
      15. SetLocale
      16. SetMonth
      17. SetProfileString
      18. SetPropertyString
      19. SetVariable
      20. SetYear
      21. Sgn
      22. Sin
      23. Sleep
      24. SpanExcluding
      25. SpanIncluding
      26. SpreadsheetAddAutoFilter
      27. SpreadsheetAddColumn
      28. SpreadsheetAddFreezePane
      29. SpreadsheetAddImage
      30. SpreadsheetAddInfo
      31. SpreadsheetAddPageBreaks
      32. SpreadsheetAddRow
      33. SpreadsheetAddRows
      34. SpreadsheetAddSplitPane
      35. SpreadsheetCreateSheet
      36. SpreadsheetDeleteColumn
      37. SpreadsheetDeleteColumns
      38. SpreadsheetDeleteRow
      39. SpreadsheetDeleteRows
      40. SpreadsheetFormatCell
      41. SpreadsheetFormatColumn
      42. SpreadsheetFormatCellRange
      43. SpreadsheetFormatColumn
      44. SpreadsheetFormatColumns
      45. SpreadsheetFormatRow
      46. SpreadsheetFormatRows
      47. SpreadsheetGetCellComment
      48. SpreadsheetGetCellFormula
      49. SpreadsheetGetCellValue
      50. SpreadsheetGetColumnCount
      51. SpreadsheetInfo
      52. SpreadsheetMergeCells
      53. SpreadsheetNew
      54. SpreadsheetRead
      55. SpreadsheetReadBinary
      56. SpreadsheetRemoveSheet
      57. SpreadsheetSetActiveSheet
      58. SpreadsheetSetActiveSheetNumber
      59. SpreadsheetSetCellComment
      60. SpreadsheetSetCellFormula
      61. SpreadsheetSetCellValue
      62. SpreadsheetSetColumnWidth
      63. SpreadsheetSetFooter
      64. SpreadsheetSetHeader
      65. SpreadsheetSetRowHeight
      66. SpreadsheetShiftColumns
      67. SpreadsheetShiftRows
      68. SpreadsheetWrite
      69. StreamingSpreadsheetNew
      70. StreamingSpreadsheetCleanup
      71. StreamingSpreadsheetRead
      72. StreamingSpreadsheetProcess
      73. SpreadsheetSetFooterImage
      74. SpreadsheetSetHeaderImage
      75. SpreadsheetSetFittoPage
      76. SpreadsheetUngroupColumns
      77. SpreadsheetGroupColumns
      78. SpreadsheetUngroupRows
      79. SpreadsheetGroupRows
      80. SpreadsheetRemoveColumnBreak
      81. SpreadsheetSetColumnBreak
      82. SpreadsheetRemoveRowBreak
      83. SpreadsheetSetRowBreak
      84. SpreadsheetRemovePrintGridlines
      85. SpreadsheetAddPrintGridlines
      86. SpreadsheetGetColumnWidth
      87. SpreadsheetSetColumnHidden
      88. SpreadsheetSetRowHidden
      89. SpreadsheetisColumnHidden
      90. SpreadsheetisRowHidden
      91. SpreadsheetisStreamingXmlFormat
      92. SpreadsheetisXmlFormat
      93. SpreadsheetisBinaryFormat
      94. SpreadsheetRenameSheet
      95. SpreadsheetRemoveSheetNumber
      96. SpreadsheetGetLastRowNumber
      97. SpreadsheetGetPrintOrientation
      98. Sqr
      99. StripCR
      100. StructAppend
      101. StructClear
      102. StructCopy
      103. StructCount
      104. StructDelete
      105. StructEach
      106. StructFilter
      107. StructFind
      108. StructFindKey
      109. StructFindValue
      110. StructGet
      111. StructGetMetadata
      112. StructInsert
      113. StructIsEmpty
      114. StructKeyArray
      115. StructKeyExists
      116. StructKeyList
      117. StructMap
      118. StructNew
      119. StructReduce
      120. StructSetMetadata
      121. StructSort
      122. StructToSorted
      123. StructUpdate
      124. StructValueArray
      125. StoreSetMetadata
      126. StoreGetACL
      127. StoreGetMetadata
      128. StoreAddACL
      129. StoreSetACL
    10. 関数 t~z
      1. Tan
      2. ThreadJoin
      3. ThreadTerminate
      4. Throw
      5. TimeFormat
      6. ToBase64
      7. ToBinary
      8. ToScript
      9. ToString
      10. Trace
      11. Transactionandconcurrency
      12. TransactionCommit
      13. TransactionRollback
      14. TransactionSetSavePoint
      15. Trim
      16. UCase
      17. URLDecode
      18. URLEncodedFormat
      19. URLSessionFormat
      20. Val
      21. ValueList
      22. VerifyClient
      23. Week
      24. Wrap
      25. WriteDump
      26. WriteLog
      27. WriteOutput
      28. WSGetAllChannels
      29. WSGetSubscribers
      30. WSPublish
      31. WSSendMessage
      32. XmlChildPos
      33. XmlElemNew
      34. XmlFormat
      35. XmlGetNodeType
      36. XmlNew
      37. XmlParse
      38. XmlSearch
      39. XmlTransform
      40. XmlValidate
      41. Year
      42. YesNoFormat
  3. ColdFusion のタグ
    1. ColdFusion タグの概要
    2. カテゴリ別の ColdFusion タグ
      1. アプリケーションフレームワークタグ
        1. cfapplication
        2. cfassociate
        3. cferror
        4. cfimport
        5. cfinterface
        6. cflock
        7. CFScript の
        8. cfthread
      2. 通信タグ
        1. cfexchangecalendar
        2. cfexchangeconnection
        3. cfexchangecontact
        4. cfexchangefilter
        5. cfexchangemail
        6. cfexchangetask
        7. cfexchangefolder
        8. cfexchangeconversation
        9. cffeed
        10. cfmail
        11. cfmailparam
        12. cfmailpart
        13. cfpopcfimap
      3. データベース操作タグ
        1. cfdbinfo
        2. cfinsert
        3. cfobjectcache
        4. cfprocparam
        5. cfprocresult
        6. cfquery
        7. cfqueryparam
        8. cfstoredproc
        9. cftransaction
        10. cfupdate
      4. データ出力タグ
        1. cfchart
        1. cfchartdata
        2. cfchartseries
        3. cfchartset
        4. cfcol
        5. cfcontent
        6. cfdocument
        7. cfdocumentitem
        8. cfdocumentsection
        9. cfflush
        10. cfheader
        11. cflog
        12. cfoutput
        13. cfpresentation
        14. cfpresentationslide
        15. cfpresenter
        16. cfprocessingdirective
        17. cfprint
        18. cfreport
        19. cfreportparam
        20. cfsilent
        21. cftable
      5. デバッグタグ
        1. cfdump
        2. cftimer
        3. cftrace
      6. 例外処理タグ
        1. cfcatch
        2. cferror
        3. cffinally
        4. cfrethrow
        5. cfthrow
        6. cftry
      7. 拡張タグ
        1. cfchart
        2. cfchartdata
        3. cfchartseries
        4. cfcollection
        5. cfcomponent
        6. cfexecute
        7. cfftp
        8. function
        9. cfindex
        10. cfinterface
        11. cfinvoke
        12. cfinvokeargument
        13. cfobject
        14. cfproperty
        15. cfreport
        16. cfreportparam
        17. cfreturn
        18. cfsearch
        19. cfsharepoint
        20. cfspreadsheet
        21. cfwddx
        22. cfxml
      8. ファイル管理タグ
        1. cfdirectory
        2. 使用できます
        3. cffileupload
        4. cfftp
        5. cfzip
        6. cfzipparam
      9. フロー制御タグ
        1. cfabort
        2. cfbreak
        3. cfcase
        4. cfcontinue
        5. cfdefaultcase
        6. cfelse
        7. cfelseif
        8. cfexecute
        9. cfexit
        10. cfif
        11. cfinclude
        12. cflocation
        13. cfloop
        14. cfrethrow
        15. cfswitch
        16. cfthrow
        17. cftry
      10. フォームタグ
        1. cfapplet
        2. cfcalendar
        3. cffileupload
        4. cfform
        5. cfformgroup
        6. cfformitem
        7. cfgrid
        8. cfgridcolumn
        9. cfgridrow
        10. cfgridupdate
        11. cfinput
        12. cfpdf
        13. cfpdfform
        14. cfpdfformparam
        15. cfpdfparam
        16. cfpdfsubform
        17. cfselect
        18. cfslider
        19. cftextarea
        20. cftree
        21. cftreeitem
      11. インターネットプロトコルタグ
        1. cfajaximport
        2. cfajaxproxy
        3. cfftp
        4. cffeed
        5. cfimap
        6. cfhttp
        7. cfhttpparam
        8. cfldap
        9. cfmail
        10. cfmailparam
        11. cfmailpart
        12. cfpop
        13. cfsprydataset
      12. ページ処理タグ
        1. cfcache
        2. cfcontent
        3. cfflush
        4. cfheader
        5. cfhtmlhead
        6. cfinclude
        7. cfprocessingdirective
        8. cfsetting
        9. cfsilent
      13. セキュリティタグ
        1. cflogin
        2. cfloginuser
        3. cflogout
        4. cfNTauthenticate
      14. 変数操作タグ
        1. cfcookie
        2. cfdump
        3. cfparam
        4. cfregistry
        5. cfsavecontent
        6. cfschedule
        7. cfset
        8. cfsetting
      15. その他のタグ
        1. cfimage
        2. cflog
        3. cfregistry
    3. タグ a~b
      1. cfabort
      2. cfajaximport
      3. cfajaxproxy
      4. cfapplet
      5. cfapplication
      6. cfargument
      7. cfassociate
      8. cfauthenticate
      9. cfbreak
    4. タグ c
      1. cfcache
      2. cfcalendar
      3. cfcase
      4. cfcatch
      5. cfchart
        1. ColdFusion の cfchart タグ
        2. cfchart の概要
        3. cfchart を使用したチャートのカスタマイズ
        4. 高度な cfchart カスタマイズオプション
        5. ColdFusion での面グラフの作成
        6. ColdFusion での折れ線グラフの作成
        7. ColdFusion での棒グラフの作成
        8. ColdFusion でのフローティング棒グラフの作成
        9. ColdFusion でのヒストグラムの作成
        10. ColdFusion での円グラフの作成
        11. ColdFusion でのファネルグラフの作成
        12. ColdFusion でのピラミッドグラフの作成
        13. ColdFusion での曲線グラフの作成
        14. ColdFusion でボックスプロットを作成する
        15. ColdFusion でのドーナツグラフの作成
        16. ColdFusion でのバブルチャートの作成
        17. ColdFusion での散布図の作成
        18. ColdFusion でのレーダーチャートの作成
        19. ColdFusion のその他のグラフタイプ(円錐、円柱、ピアノ、箇条書き)
        20. cfchart の高度なカスタマイズオプション
          1. ColdFusion のチャートへのマーカーの追加
          2. ColdFusion のチャートへのルールの追加
          3. ColdFusion のチャートでの数値の書式設定
          4. ColdFusion のチャートへのアニメーションの追加
          5. ColdFusion のチャートへのテーマの作成と適用
      6. cfchartdata
      7. cfchartseries
      8. cfchartset
      9. cfclient
      10. cfclientsettings
      11. cfcol
      12. cfcollection
      13. cfcomponent
      14. cfcontent
      15. cfcontinue
      16. cfcookie
      17. タグ d~e
    5. タグ f
      1. cffeed
      2. cffile
      3. cffile action = "append"
      4. cffile action = "copy"
      5. cffile action = "delete"
      6. cffile action = "move"
      7. cffile action = "read"
      8. cffile action = "readBinary"
      9. cffile action = "rename"
      10. cffile action = "upload"
      11. cffile action = "uploadAll"
      12. cffile action = "write"
      13. cffileupload
      14. cffinally
      15. cfflush
      16. cfform
      17. cfformgroup
      18. cfformitem
      19. cfftp
      20. cfftp:接続:ファイルおよびディレクトリのオペレーション
      21. cfftp:FTP サーバー接続の確立と切断
      22. cfftp:セキュア FTP サーバー接続の確立と切断
      23. cfftp action = "listDir"
      24. cffunction
    6. タグ g~h
      1. cfgraph
      2. cfgraphdata
      3. cfgrid
      4. cfgridcolumn
      5. cfgridrow
      6. cfgridupdate
      7. cfheader
      8. cfhtmlhead
      9. cfhtmltopdf
      10. cfhtmltopdfitem
      11. cfhttp
      12. cfhttpparam
    7. タグ i
      1. cfif
      2. cfimage
      3. cfimap
      4. cfimapfilter
      5. cfimpersonate
      6. cfimport
      7. cfinclude
      8. cfindex
      9. cfinput
      10. cfinsert
      11. cfinterface
      12. cfinvoke
      13. cfinvokeargument
    8. タグ j~l
      1. cfjava
      2. cflayout
      3. cflayoutarea
      4. cfldap
      5. cflocation
      6. cflock
      7. cflog
      8. cflogin
      9. cfloginuser
      10. cflogout
      11. cfloop
      12. cfloop:条件付きループ
      13. cfloop:インデックスループ
      14. cfloop:COM コレクションまたは構造体に対するループ
      15. cfloop:日付または時刻の範囲に対するループ
      16. cfloop:リスト、ファイルまたは配列に対するループ
      17. cfloop:クエリに対するループ
    9. タグ m~o
      1. cfmail
      2. cfmailparam
      3. cfmailpart
      4. cfmap
      5. cfmapitem
      6. cfmediaplayer
      7. cfmenu
      8. cfmenuitem
      9. cfmessagebox
      10. cfmodule
      11. cfNTauthenticate
      12. cfoauth
      13. cfobject
      14. cfobject:.NET オブジェクト
      15. cfobject:COM オブジェクト
      16. cfobject:コンポーネントオブジェクト
      17. cfobject:CORBA オブジェクト
      18. cfobject:Java または EJB オブジェクト
      19. cfobject:web サービスオブジェクト
      20. cfobjectcache
      21. cfoutput
    10. タグ p~q
      1. cfparam
      2. cfpdf
      3. cfpdfform
      4. cfpdfformparam
      5. cfpdfparam
      6. cfpdfsubform
      7. cfpod
      8. cfpop
      9. cfpresentation
      10. cfpresentationslide
      11. cfpresenter
      12. cfprint
      13. cfprocessingdirective
      14. cfprocparam
      15. cfprocresult
      16. cfprogressbar
      17. cfproperty
      18. cfquery
      19. cfqueryparam
    11. タグ r~s
      1. cfregistry
      2. cfreport
      3. cfreportparam
      4. cfrethrow
      5. cfreturn
      6. cfsavecontent
      7. cfschedule
      8. cfscript
      9. cfsearch
      10. cfselect
      11. cfservlet
      12. cfservletparam
      13. cfset
      14. cfsetting
      15. cfsharepoint
      16. cfsilent
      17. cfslider
      18. cfspreadsheet
      19. cfsprydataset
      20. cfstoredproc
      21. cfswitch
    12. タグ t
      1. cftable
      2. cftextarea
      3. cftextinput
      4. cfthread
      5. cfthrow
      6. cftimer
      7. cftooltip
      8. cftrace
      9. cftransaction
      10. cftree
      11. cftreeitem
      12. cftry
    13. タグ u~z
      1. cfupdate
      2. cfwddx
      3. cfwebsocket
      4. cfwindow
      5. cfxml
      6. cfzip
      7. cfzipparam
  4. CFML リファレンス
    1. 予約語と変数
      1. 予約語と変数
      2. 予約語
      3. スコープ固有のビルトイン変数
      4. カスタムタグ変数
      5. ColdFusion タグ固有の変数
      6. CGI 環境(CGI スコープ)変数
    2. AJAX JavaScript 関数
      1. AJAX JavaScript 関数
      2. 関数概要 Ajax
      3. ColdFusion.Ajax.submitForm
      4. ColdFusion.Autosuggest.getAutosuggestObject
      5. ColdFusion.Layout.enableSourceBind
      6. ColdFusion.MessageBox.getMessageBoxObject
      7. ColdFusion.ProgressBar.getProgressBarObject
      8. ColdFusion.MessageBox.isMessageBoxDefined
      9. JavaScriptFunctionsinColdFusion9Update1
    3. ColdFusion ActionScript 関数
      1. ColdFusion ActionScript 関数
      2. CF.http
      3. CF.query
    4. ColdFusion Mobile 関数
      1. ColdFusion Mobile 関数
      2. Accelerometer 関数
      3. カメラ関数
      4. 接続関数
      5. 連絡先関数
      6. イベント関数
      7. ファイルシステム関数
      8. ジオロケーション関数
      9. メディアおよびキャプチャの関数
      10. 通知関数
      11. スプラッシュ画面関数
      12. Storage 関数
    5. Application.cfc リファレンス
      1. Application.CFC リファレンス
      2. アプリケーション変数
      3. メソッドの概要
      4. onAbort
      5. onApplicationEnd
      6. onApplicationStart
      7. onMissingTemplate
      8. onCFCRequest
      9. onError
      10. onRequestEnd
      11. onRequest
      12. onRequestStart
      13. onServerStart
      14. onSessionEnd
      15. onSessionStart
    6. CFC として実装されているスクリプト関数
      1. CFC として実装されているスクリプト関数
      2. 関数へのアクセス
      3. 関数一覧
      4. ftp
      5. http
      6. mail
      7. pdf
      8. query
      9. ColdFusion 9 アップデート 1 で CFC として実装されたスクリプト関数
      10. storedproc
    7. ColdFusion Flash フォームスタイルリファレンス
      1. すべてのコントロールに有効なスタイル
      2. cfform に有効なスタイル
      3. type 属性が horizontal または vertical である cfformgroup に有効なスタイル
      4. ボックススタイルの cfformgroup 要素に有効なスタイル
      5. type 属性が accordion である cfformgroup に有効なスタイル
      6. type 属性が tabnavigator である cfformgroup に有効なスタイル
      7. type 属性が hrule または vrule である cfformitem に有効なスタイル
      8. type 属性が radio、checkbox、button、image、または submit である cfinput に有効なスタイル
      9. cftextarea タグ、および type 属性が text、password、または hidden である cfinput に有効なスタイル
      10. size 属性の値が 1 である cfselect に有効なスタイル
      11. size 属性が 2 以上である cfselect に有効なスタイル
      12. cfcalendar タグ、および type 属性が dateField である cfinput に有効なスタイル
      13. cfgrid タグに有効なスタイル
      14. cftree タグに有効なスタイル
      15. ColdFusion Flash フォームスタイルリファレンス
    8. ColdFusion イベントゲートウェイリファレンス
      1. ColdFusion イベントゲートウェイリファレンス
      2. addEvent
      3. CFEvent
      4. CFEventclass
      5. コンストラクタ
      6. ゲートウェイ開発のインターフェイスとクラス
      7. getStatus
      8. setCFCPath
      9. setCFCMethod
      10. getOriginatorID
      11. getLogger
      12. getBuddyList
      13. getBuddyInfo
      14. IM ゲートウェイメッセージ送信コマンド
      15. IM ゲートウェイ GatewayHelper クラスのメソッド
      16. onIncomingMessage
      17. onIMServerMessage
      18. onBuddyStatus
      19. onAddBuddyResponse
      20. onAddBuddyRequest
      21. IM ゲートウェイ CFC 着信メッセージメソッド
      22. IM ゲートウェイメソッドとコマンド
      23. CFML CFEvent 構造体
      24. warn
      25. info
      26. setOriginatorID
      27. data コマンド
      28. submitMulti コマンド
      29. submit コマンド
      30. setGatewayType
      31. setGatewayID
      32. setData
      33. setCFCListeners
      34. outgoingMessage
      35. getStatusTimeStamp
      36. numberOfMessagesReceived
      37. numberOfMessagesSent
      38. removeBuddy
      39. removeDeny
      40. removePermit
      41. setNickName
      42. setPermitMode
      43. setStatus
      44. SMS ゲートウェイ CFEvent の構造体とコマンド
      45. SMS ゲートウェイ着信メッセージ CFEvent 構造体
      46. getStatusAsString
      47. getProtocolName
      48. getPermitMode
      49. getPermitList
      50. getNickName
      51. getName
      52. getDenyList
      53. getCustomAwayMessage
      54. getQueueSize
      55. getMaxQueueSize
      56. getHelper
      57. getGatewayType
      58. getGatewayServices
      59. getGatewayID_1
      60. getGatewayID
      61. getData
      62. getCFCTimeout
      63. setCFCTimeout
      64. getCFCPath
      65. getCFCMethod
      66. GatewayServices クラス
      67. ゲートウェイインターフェイス
      68. GatewayHelper インターフェイス
      69. addPermit
      70. addDeny
      71. addBuddy
      72. error
      73. debug
      74. Logger クラス
      75. stop
      76. start
      77. CFML イベントゲートウェイ SendGatewayMessage の data パラメータ
      78. restart
      79. fatal
      80. SMS ゲートウェイメッセージ送信コマンド
    9. ColdFusion C++ CFX リファレンス
      1. C++ クラスの概要
      2. 非推奨のクラスメソッド
      3. CCFXException クラス
      4. CCFXQuery クラス
      5. CCFXRequest クラス
      6. CCFXStringSet クラス
      7. ColdFusion C++ CFX リファレンス
    10. ColdFusion Java CFX リファレンス
      1. ColdFusion Java CFX リファレンス
      2. クラスライブラリの概要
      3. カスタムタグインターフェイス
      4. クエリインターフェイス
      5. リクエストインターフェイス
      6. レスポンスインターフェイス
      7. デバッグクラスリファレンス
    11. WDDX JavaScript オブジェクト
      1. WDDX JavaScript オブジェクト
      2. JavaScript オブジェクトの概要
      3. WddxRecordset オブジェクト
      4. WddxSerializer オブジェクト
  5. クラウドサービス
    1. ColdFusion と GCP Storage
    2. ColdFusion と GCP Firestore
    3. ColdFusion と GCP PubSub
    4. ColdFusion と Amazon S3
    5. ColdFusion と DynamoDB
    6. ColdFusion と Amazon SQS
    7. ColdFusion と Amazon SNS
    8. ColdFusion と MongoDB
    9. ColdFusion と Azure Blob
    10. ColdFusion と Azure Service Bus
    11. マルチクラウドストレージサービス
    12. マルチクラウド RDS データベース
    13. ColdFusion と Azure Cosmos DB

 

説明

ColdFusion イメージを作成します。cfimage タグを使用すると、Image 関数へのショートカットとして一般的なイメージ操作オペレーションを実行できます。 cfimage タグは、単独で使用することも、Image 関数と併用することもあります。

履歴

ColdFusion(2025リリース):WebP 画像形式のサポートが追加されました。詳しくは、cfimage の WebP サポートを参照してください。

ColdFusion 10:{{cfimage action = "resize"}} に interpolation 属性が追加されました。

ColdFusion 8:このタグが追加されました。

カテゴリ

その他のタグ

シンタックス

Add a border to an image 
<cfimage 
required 
action = &quot;border&quot; 
source = &quot;absolute pathname|pathname relative to the web root|URL|#cfimage variable#&quot; 
optional 
color = &quot;hexadecimal value|web color&quot; 
destination = &quot;absolute pathname|pathname relative to the web root&quot; 
isBase64 = &quot;yes|no&quot; 
name = &quot;cfimage variable&quot; 
overwrite = &quot;yes|no&quot; 
thickness = &quot;number of pixels&quot;> 

Create a CAPTCHA image 
<cfimage 
required 
action = &quot;captcha&quot; 
height = &quot;number of pixels&quot; 
text = &quot;text string&quot; 
width = &quot;number of pixels&quot; 
optional 
destination = &quot;absolute pathname|pathname relative to the web root&quot; 
difficulty = &quot;high|medium|low&quot; 
overwrite = &quot;yes|no&quot; 
fonts = &quot;comma-separated list of font names&quot; 
fontSize = &quot;point size&quot;> 

Convert an image file format 
<cfimage 
required 
action = &quot;convert&quot; 
destination = &quot;absolute pathname|pathname relative to the web root&quot; 
source = &quot;absolute pathname|pathname relative to the web root&quot;|URL|#cfimage variable# 
optional 
isBase64 = &quot;yes|no&quot; 
name = &quot;cfimage variable&quot; 
overwrite = &quot;yes|no&quot;> 

Retrieve information about an image 
<cfimage 
required 
action = &quot;info&quot; 
source = &quot;absolute pathname|pathname relative to the web root|URL|#cfimage variable#&quot; 
structname = &quot;structure name&quot; 
optional 
isBase64 = &quot;yes|no&quot;> 

Read an image into memory 
<cfimage 
required 
name = &quot;cfimage variable&quot; 
source = &quot;absolute pathname|pathname relative to the web root|URL|#cfimage variable#&quot; 
optional 
action = &quot;read&quot; 
isBase64 = &quot;yes|no&quot;> 

Resize an image 
<cfimage 
required 
action = &quot;resize&quot; 
height = &quot;number of pixels|percent%&quot; 
source = &quot;absolute pathname|pathname relative to the web root|URL|#cfimage variable#&quot; 
width = &quot;number of pixels|percent%&quot; 
optional 
destination = &quot;absolute pathname|pathname relative to the web root&quot; 
isBase64 = &quot;yes|no&quot; 
name = &quot;cfimage variable&quot; 
overwrite = &quot;yes|no&quot;> 
interpolation = &quot;interpolation algorithm&quot; 

Rotate an image 
<cfimage 
required 
action = &quot;rotate&quot; 
angle = &quot;angle in degrees&quot; 
source = &quot;absolute pathname|pathname relative to the web root|URL|#cfimage variable#&quot; 
optional 
destination = &quot;absolute pathname|pathname relative to the web root&quot; 
isBase64= &quot;yes|no&quot; 
name = &quot;cfimage variable&quot; 
overwrite = &quot;yes|no&quot;> 

Write an image to a file 
<cfimage 
required 
action = &quot;write&quot; 
destination = &quot;absolute pathname|pathname relative to the web root&quot; 
source = &quot;absolute or relative pathname|URL|#cfimage variable#&quot; 
optional 
isBase64= &quot;yes|no&quot; 
overwrite = &quot;yes|no&quot; 
quality = &quot;JPEG image quality&quot;> 

Write an image to the browser 
<cfimage 
required 
action = &quot;writeToBrowser&quot; 
source = &quot;absolute pathname|pathname relative to the web root|URL|#cfimage variable#&quot; 
optional 
format = &quot;png|jpg|jpeg|webp&quot; 
isBase64= &quot;yes|no&quot;>
注意:

このタグの属性は attributeCollection 属性で指定でき、その値は構造体になります。 attributeCollection 属性で構造体の名前を指定し、タグの属性名を構造体のキーとして使用します。

関連トピック

属性

属性

アクション

必須/オプション

デフォルト

説明

action

該当なし

オプション

read

実行するアクションです。 次のいずれかになります。

  • border
  • captcha
  • convert
  • info
  • read
  • resize
  • rotate
  • write
  • writeToBrowser
    デフォルトのアクションは read です。このアクションを明示的に指定する必要はありません。

angle

rotate

必須

 

画像を回転する角度(度単位)。値には整数を指定します。

color

border

オプション

black

ボーターのカラー。16 進数値またはサポートされているカラー色を指定します。「有効な HTML カラー名」にある名前のリストを参照してください。16 進数値で指定する場合は、"##xxxxxx" または "xxxxxx" という形式を使用します。ここで、x は 0 ~ 9 または A ~ F です。シャープ記号 (#) は 2 つ使用するか、または使用しないでください。

destination

border captcha 
convert 
resizerotate 
write

オプション(「説明」を参照)

 

イメージの出力先の絶対パス名または相対パス名です。イメージの形式は、ファイル拡張子によって決定されます。
convert および write アクションの場合、destination 属性は必須です。border、captcha、resize、および rotate アクションの場合は、name 属性または destination 属性が必須になります。両方を指定することもできます。ColdFusion では、PNG 形式の CAPTCHA イメージのみがサポートされています。
CAPTCHA イメージが配置される場所は、次のように決まります。

  • destination を指定した場合、イメージは、(指定した絶対パス名または相対パス名に基づいて)ファイルに書き込まれます。
  • name を指定した場合、イメージはイメージ変数に書き込まれます。
  • destination と name のどちらも指定しない場合、イメージはブラウザーに書き込まれます。

difficulty

captcha

オプション

low

CAPTCHA テキストの複雑度のレベルです。 テキストの歪みのレベルを次のいずれかの値で指定します。

  • low
  • medium
  • high

fonts

captcha

オプション

 

CAPTCHA テキストで使用する有効なフォントです。 複数のフォントを指定する場合は、カンマで区切ります。 指定されたフォントを使用できない場合は、システムフォントが代用されます。

fontSize

captcha

オプション

24

CAPTCHA イメージ内のテキストのフォントサイズです。
この値は整数で指定する必要があります。

format

writeToBrowser

オプション

PNG

ブラウザーに表示するイメージの形式です。形式を指定しない場合、イメージは PNG 形式で表示されます。
ブラウザで GIF イメージを表示することはできません。 GIF イメージは PNG 形式で表示されます。

height

captcha resize

必須

 

イメージの高さです(単位 : ピクセル)。
resize の場合は、高さをパーセントで指定することもできます (整数値の後にパーセント (%) 記号を付けます)。
イメージのサイズを変更する場合は、幅の値を指定して高さを "" に指定すると、ColdFusion で縦横比が計算されます。
指定する場合、値は整数で指定する必要があります。

inter
polation

resize

オプション

highest
Quality

名前(hamming など)、イメージ品質(mediumQuality など)、またはパフォーマンス(highestPerformance など)を基準に特定の補間アルゴリズムを指定します。有効な値は次のとおりです。

  • highestQuality
  • highQuality
  • mediumQuality
  • highestPerformance
  • highPerformance
  • mediumPerformance
  • nearest
  • bilinear
  • bicubic
  • bessel
  • blackman
  • hamming
  • hanning
  • hermite
  • lanczos
  • mitchell
  • quadratic

isBase64

border 
convert 
info 
read 
resizerotate 
writewrite
ToBrowser

オプション

yes

ソースが Base64 文字列であるかどうかを指定します。

  • yes:ソースは Base64 文字列です。
  • no:ソースは Base64 文字列ではありません。

name

border
convertread
resizerotate

オプション
(「説明」を参照)

 

作成する ColdFusion イメージ変数の名前です。
read アクションの場合、name 属性は必須です。
border、resize、および rotate アクションの場合は、name 属性または destination 属性が必須になります。両方を指定することもできます。

overwrite

border
captcha
conver
tread
resizerotate
write

オプション

yes

destination 属性が指定されている場合にのみ有効です。overwrite の値は次のとおりです。

  • yes:書き込み先のファイルを上書きします。
  • no:書き込み先のファイルを上書きしません。
    書き込み先のファイルが既に存在する場合は、overwrite アクションが yes に設定されていないとエラーが発生します。

quality

write

オプション

0.75

JPEG 形式の書き込み先ファイルの品質です。 拡張子が JPG または JPEG のファイルに対してのみ適用されます。 有効な値は、0 ~ 1 の間の小数です (値が小さいほど品質は低くなります)。

source

border 
convert 
info 
read 
resizerotate 
write 
write
ToBrowser

必須

 

  • ソースイメージの URL(例:"{{ http://www.google.com/images/logo.gif }}")
  • 絶対パス名または Web ルートからの相対パス名(例:"c:¥images¥logo.jpg")
  • 別のイメージ、BLOB、またはバイト配列を含む ColdFusion イメージ変数(例:"#myImage#")
  • Base64 文字列(例:"data:image/jpg;base64,/9j/4AAQSkZJRgABAQA..............")

struct
Name

info

必須

 

作成する ColdFusion 構造体の名前です。

text

captcha

必須

 

CAPTCHA イメージ内に表示するテキスト文字列です。 読みやすいように大文字を使用してください。 CAPTCHA イメージ内では見分けられないので、スペースは使用しないでください。

thickness

border

オプション

1

ボーダーの幅です(単位 : ピクセル)。ボーダーはソースイメージの外縁に追加されるため、ボーダーの幅に応じてイメージ領域が広くなります。
この値は整数で指定する必要があります。

width

captcha 
resize

必須

 

イメージの幅です (単位 : ピクセル)。
resize の場合は、幅をパーセントで指定することもできます(整数値の後に % 記号を付けます)。
イメージのサイズを変更する場合は、高さの値を指定して幅を "" に指定すると、ColdFusion で縦横比が計算されます。
指定する場合、値は整数で指定する必要があります。

使用方法

ColdFusion には、cfimage タグに加え、ColdFusion イメージと呼ばれる概念があります。ColdFusion イメージとは、イメージデータを含む ColdFusion 固有の構造です。メモリ内で ColdFusion イメージを操作して、ファイル、データベース、ブラウザーなどに書き込むことができます。既存のイメージファイルから ColdFusion イメージを作成して、簡単なイメージアクション(回転やサイズ変更など)を実行するには、cfimage タグを使用します。また、ImageNew 関数を使用すると、何もない状態から ColdFusion イメージを作成することも、既存のイメージから ColdFusion イメージを作成することもできます。Image 関数を使用すると、cfimage タグまたは ImageNew 関数で作成した ColdFusion イメージに対して複雑なイメージ操作オペレーションを実行できます。
ColdFusion イメージに対しては、次のようなタスクを実行できます。

  • イメージのファイル形式を変換する。 たとえば、BMP ファイルを JPEG ファイルに変換したり、Base64 文字列を GIF に変換することができます。
  • サーバーにアップロードするファイルのサイズを統一する。
  • JPEG イメージの品質を変更してサイズを制限する。
  • ColdFusion イメージをファイルに保存する。または、ブラウザに直接出力する。
  • cfquery タグ内で ImageGetBlob 関数を使用して、ColdFusion イメージを BLOB(Binary Large Object Bitmap)としてデータベースに挿入する。データベースから BLOB を抽出して ColdFusion イメージを生成することもできます。
  • 透かしイメージを作成する。
  • サムネールイメージを作成する。
  • スパムを防止するために CAPTCHA(Completely Automated Public Turing test to tell Computers and Humans Apart)イメージを作成する。CAPTCHA イメージとは、機械では読み取れないように(ただし、人間には読み取れるように)歪められたテキストを含むイメージであり、本人確認などに使用されます。
    詳細な例については、ColdFusion アプリケーションの開発ColdFusion イメージの作成と操作を参照してください。

ファイル属性

次の構文を使用して、destination 属性および source 属性で指定されたディスクに書き込まれない、メモリ内のファイルを指定します。メモリ内のファイルを使用すると、一時的データの処理が速くなります。

ram:///filepath

ファイルパスには、ram:///petStore/images/poodle.jpg のようにディレクトリを含めることができます。 ファイルを指定する前に、パスに含まれるディレクトリを作成しておく必要があります。 メモリ内ファイルの使用方法について詳しくは、『ColdFusion アプリケーションの開発』の「ColdFusion アプリケーションの最適化」の「メモリ内ファイルの使用」を参照してください。

サポートされる画像ファイル形式

cfimage タグは、さまざまなファイル形式をサポートします。ColdFusion アプリケーションがデプロイされているサーバー上でサポートされている形式を一覧表示するには、GetReadableImageFormats 関数と GetWriteableImageFormats 関数を使用します。ColdFusion は、Macintosh、Windows、Unix オペレーティングシステムで次のデフォルトのイメージ形式をサポートしています。

  • JPEG
  • GIF
  • WEBP
  • TIFF
  • PNG
  • BMP

次のイメージ形式はサポートされていません。

  • アニメーション GIF
  • マルチページ TIFF
  • PSD
  • AI

CMYK サポート

cfimage タグでは、CMYK イメージの読み込みと書き込みがサポートされていますが、イメージの変換が必要なアクションはサポートされていません。たとえば、CMYK イメージは、read、write、writeToBrowser、resize、rotate、および info アクションで使用できます。一方、CMYK イメージは、convert、captcha、および border アクションでは使用できません。同じルールがイメージ関数にも適用されます。たとえば、ImageNew、ImageRead、および ImageWrite 関数では CMYK イメージがサポートされますが、ImageAddBorder 関数ではサポートされません。

有効な HTML カラー名

次の表に、color 属性で使用できる W3C HTML 4 カラー名または 16 進値を示します。

カラー名

RGB 値

Black

##000000

Blue

##0000FF

Red

##FF0000

Gray

##808080

LightGray

##D3D3D3

DarkGray

##A9A9A9

Green

##008000

Pink

##FFC0CB

Cyan

##00FFFF

Magenta

##FF00FF

Orange

##FFA500

White

##FFFFFF

Yellow

##FFFF00

その他の色を指定する場合は、16 進数値を入力します。 RGB 値を示す 6 桁の値を指定します。 00 ~ FF の範囲の値を使用できます。

イメージの品質

デフォルトでは、cfimage タグで生成されるイメージにはアンチエイリアス処理が適用されます(輪郭のジャギーが除去されます)。 また、補間方式は highestQuality に設定されます。この方式では高品質のイメージが生成されますが、処理速度は低下します。アンチエイリアスをオフにするには、ImageSetAntialiasing 関数を使用します。補間方式の変更や、イメージ属性の制御には、次の関数を使用します。

  • イメージの外縁に矩形のボーダーを作成するには、border アクションを使用します。このアクションでは、ボーダーの幅と色を制御できます。その他の属性を制御するには、ImageAddBorder 関数を使用します。次の例では、ボーダーの幅と色を設定します。

<!--- 次の例では、既存の JPEG ファイルから ColdFusion イメージを作成し、そのイメージに 5 ピクセル幅の
赤い境界線を追加して、新しい JPEG ファイルに保存する方法を示しています。 --->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff05.jpg&quot; action=&quot;border&quot; thickness=&quot;5&quot;
destination=&quot;jeff05.jpg&quot; color=&quot;red&quot; overwrite=&quot;yes&quot;>
  • 機械では読み取れないように(ただし、人間には読み取れるように)歪められたテキストイメージを作成するには、captcha アクションを使用します。CAPTCHA イメージを作成するには、CAPTCHA イメージで表示するテキストを指定します。このテキストが ColdFusion によってランダムに変形されます。 このアクションでは、テキスト領域の高さと幅を指定できます。この設定は、文字の間隔、フォントサイズ、CAPTCHA テキストで使用するフォント、難読度に影響するため、テキストの読みやすさを左右します。 次の例は、CAPTCHA イメージをブラウザに直接出力する方法を示しています。
<cfimage action=&quot;captcha&quot; fontSize=&quot;25&quot; width=&quot;400&quot; height=&quot;150&quot; text=&quot;rEadMe&quot;
fonts=&quot;Arial,Verdana,Courier New&quot;>
注意:
CAPTCHA イメージを表示するには、width を、"fontSize × text で指定した文字の数 × 1.08" より大きい値に設定する必要があります。この例の場合、width の最小値は 162 です。

ColdFusion では、PNG 形式の CAPTCHA イメージのみがサポートされています。

複数のユーザーが CAPTCHA イメージにアクセスした場合にファイルが上書きされないようにするには、CAPTCHA イメージファイルに一意の名前を付けます。

次の例は、difficulty を medium に設定して CAPTCHA イメージを作成し、ファイルに書き込む方法を示しています。

<!--- GetTickCount 関数を使用して、CAPTCHA ファイルの一意の名前を生成します。 --->
<cfset tc = GetTickCount()> 
<cfimage action=&quot;captcha&quot; fontSize=&quot;15&quot; width=&quot;180&quot; height=&quot;50&quot; text=&quot;rEadMe&quot;
destination=&quot;images/rEadMe#tc#.png&quot; difficulty=&quot;medium&quot;>

例について詳しくは、ColdFusion アプリケーションの開発ColdFusion イメージの作成と操作を参照してください。

  • イメージのファイル形式を変換するには、convert アクションを使用します。 ファイル形式の詳細については、「サポートされるイメージファイル形式」を参照してください。 次の例は、JPEG ファイルを PNG ファイルに変換する方法を示しています。
<!--- 次の例は、JPEG イメージを PNG イメージに変換する方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/aiden02.jpg&quot; action=&quot;convert&quot;
destination=&quot;aiden02.png&quot;>
注意:

イメージのファイル形式を変換する作業には時間がかかります。 また、イメージの品質が低下する場合もあります。たとえば、PNG イメージでは 24 ビットの色がサポートされていますが、GIF イメージでは 256 色しかサポートされていません。 透明のイメージ (アルファ値を持つイメージ) を変換すると、品質が低下する場合があります。

  • info アクション イメージのカラーモデル、高さ、幅、ソースなど、イメージに関する情報を格納する ColdFusion 構造体を作成するには、info アクションを使用します。この構造体は、ImageInfo 関数が返す構造体と同じものです。次の例は、イメージに関するすべての情報を取得する方法を示しています。
<!--- 次の例では、イメージ情報を取得して表示する方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/viata03.jpg&quot; action=&quot;info&quot; structName=&quot;viatoInfo&quot;> 
<cfdump var=&quot;#viatoInfo#&quot;> 
 
<!--- または、次の例に示すように、cfoutput タグを使用して特定のイメージ情報を表示
することもできます。--->
<cfoutput> 
<p>height: #viatoInfo.height# pixels</p> 
<p>width: #viatoInfo.width# pixels</p> 
<p>source: #viatoInfo.source#</p> 
<p>transparency: #viatoInfo.colormodel.transparency#</p> 
<p>pixel size: #viatoInfo.colormodel.pixel_size#</p> 
<p>color model: #viatoInfo.colormodel.colormodel_type#</p> 
<p>alpha channel support: #viatoInfo.colormodel.alpha_channel_support#</p> 
<p>color space: #viatoInfo.colormodel.colorspace#</p> 
</cfoutput>
  • read アクション 指定したローカルのファイルパス名または URL からイメージを読み込んで、メモリ内に ColdFusion イメージを作成するには、read アクションを使用します。 ColdFusion イメージ変数は、別の cfimage タグや Image 関数のソースとして使用できます。read アクションは、ImageRead 関数と同じオペレーションを実行します。次の例では、JPEG ファイルから ColdFusion イメージを作成し、ImageGrayscale 関数を使用してイメージを操作する方法を示しています。
<!--- 次のコードは、JPEG ファイルから ColdFusion イメージを作成する方法を示しています。
--->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff01.jpg&quot; name=&quot;myImage&quot;> 
<!--- 次のコードは、イメージをグレースケールに変換する方法を示しています。--->
<cfset ImageGrayscale(myImage)> 
<!--- 次のコードは、グレースケール画像を JPEG ファイルに書き込む方法を示しています。--->
<cfimage source=&quot;#myImage#&quot; action=&quot;write&quot; destination=&quot;myGrayscaleImage.jpg&quot; overwrite=&quot;yes&quot;>
  • resize アクション イメージの高さと幅を変更するには、resize アクションを使用します。 高さと幅を設定するには、ピクセル数またはパーセント値を指定します。
<!--- この例では、イメージの高さと幅をピクセル単位で指定する方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff01.jpg&quot; action=&quot;resize&quot; width=&quot;100&quot; height=&quot;100&quot; destination=&quot;jeff01_thumbnail.jpg&quot; overwrite=&quot;yes&quot;> 
<!--- 次の例では、イメージの高さと幅をパーセンテージで指定する方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff02.jpg&quot; action=&quot;resize&quot;
width=&quot;50%&quot; height=&quot;50%&quot; destination=&quot;jeff02_thumbnail.jpg&quot; overwrite=&quot;yes&quot;> 
<!--- 次の例では、イメージの高さをピクセル単位で指定し、幅をパーセンテージで指定する
方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff03.jpg&quot; action=&quot;resize&quot;
width=&quot;50%&quot; height=&quot;100&quot; destination=&quot;jeff03_thumbnail.jpg&quot; overwrite=&quot;yes&quot;>

サイズ変更に関するその他の属性を制御するには、ImageResize 関数を使用します。

  • rotate アクション イメージを指定した角度だけ回転させるには、rotate アクションを使用します。

<!--- 次の例では、画像を 30 度回転する方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/maxwell01.jpg&quot; action=&quot;rotate&quot; angle=&quot;30&quot;
name=&quot;maxwellAngle&quot;> 
<!--- 回転した画像をブラウザーで表示します。 --->
<cfimage source=&quot;#maxwellAngle#&quot; action=&quot;writeToBrowser&quot;>

回転に関するその他の属性を制御するには、ImageRotate 関数を使用します。

  • write アクション 指定したパスにイメージを書き込むには、write アクションを使用します。新しいイメージは、destination 属性で指定したファイルタイプに変換されます。write アクションは、ImageWrite 関数と同じオペレーションを実行します。イメージを JPEG ファイルに書き込む場合のデフォルトのイメージ品質は、元のイメージの 75% に設定されます。イメージのサイズを制御するには、write アクションの quality 属性を使用します。
    write アクションを使用して JPEG イメージの品質を変更すると、ファイルサイズを小さくすることができます。 次の例は、イメージの品質を 0.5 に変更する方法を示しています。
<!--- 次の例では、write アクションを使用して JPEG ファイルから PNG ファイルを作成する方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/aiden01.jpg&quot; action=&quot;write&quot;
destination=&quot;aiden01.png&quot;> 
<!--- 次の例では、低画質の JPEG 画像を作成する方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff05.jpg&quot; action=&quot;write&quot;
destination=&quot;jeff05_lq.jpg&quot; quality=&quot;.5&quot;> 
<!--- 次の例では、JPEG ファイルを新しい場所に書き込む方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff05.jpg&quot; action=&quot;write&quot;
destination=&quot;jeff05.jpg&quot;>
  • writeToBrowser アクション ColdFusion イメージをファイルに書き込まずに直接ブラウザーに表示するには、writeToBrowser アクションを使用します。イメージは PNG 形式で表示されます。 次の例は、イメージのサイズを小さくしてからブラウザにイメージを表示する方法を示しています。
<!--- 次の例では、JPEG ファイルから ColdFusion イメージを作成し、サイズを変更して、ブラウザーに PNG イメージとして表示する方法を示しています。--->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff05.jpg&quot; action=&quot;resize&quot;
width=&quot;50%&quot; height=&quot;50%&quot; name=&quot;smLogo&quot;> 
<cfimage source=&quot;#smLogo#&quot; action=&quot;writeToBrowser&quot;>

次の例は、ColdFusion イメージを作成し、Image 関数を使用してイメージを操作する方法を示しています。

<!--- JPEG ファイルから ColdFusion イメージ変数「myImage」を作成します。--->
<cfimage source=&quot;../cfdocs/images/artgallery/jeff05.jpg&quot; name=&quot;myImage&quot;> 
<!--- ColdFusion イメージをイメージ関数に渡して、イメージを半径 5 でぼかし、イメージ
を 90 度反転し、イメージをグレースケールに変換します。--->
<cfset ImageBlur(myImage,5)> 
<cfset ImageFlip(myImage,&quot;90&quot;)> 
<cfset ImageGrayscale(myImage)> 
<!--- 変換したイメージをブラウザーに書き込みます。--->
<cfimage source=&quot;#myImage#&quot; action=&quot;writeToBrowser&quot;>

WebP 画像のサポート

WebP は、web 上の画像をより高い圧縮率で圧縮できる画像形式です。非可逆圧縮と可逆圧縮の両方をサポートします。

WebP の主な機能

  • 非可逆圧縮と可逆圧縮:WebP は、非可逆圧縮または可逆圧縮のいずれかの方法で画像を圧縮できるので、JPEG や PNG などの従来の形式に比べてファイルサイズが小さくなります。
  • 透明度:WebP は、PNG と同様の透明な画像をサポートしています。これは、背景が透明な画像やオーバーレイグラフィックに役立ちます。
  • アニメーション:WebP は、アニメーション画像も処理できるので、GIF よりも圧縮率と画質に優れた代替手段となります。
  • 幅広いサポート:Google Chrome、Firefox、Edge、Opera などの最新の web ブラウザーは WebP をサポートしているので、web 開発者にとって実用的な選択肢となります。
  • 効率的な圧縮:WebP では通常、JPEG、PNG、GIF 形式と比較してファイルサイズが小さくなり、同等以上の画質が維持されます。この効率性により、web サイトの読み込み時間が短縮され、帯域幅の使用量も削減される場合があります。

cfimage の read および write アクションを使用すると、WebP ファイルを読み取り、画像処理を適用し、変更されたファイルをディスクに書き戻すことができます。

<cfset imagePath = &quot;fire.webp&quot;> 
<cftry>
    <cfimage action=&quot;read&quot; source=&quot;#imagePath#&quot; name=&quot;myImage&quot;>
    <cfoutput>
        Image read successfully.
    </cfoutput>
    <cfcatch type=&quot;image&quot;>
    <cfoutput>
        #cfcatch.message#
    </cfoutput>
    </cfcatch>
</cftry>
<!--- 画像にブラーを適用します --->
<cfset ImageBlur(myImage,10)>
<cftry>
    <cfimage action=&quot;write&quot; source=&quot;#myImage#&quot; destination=&quot;blurred_fire.webp&quot; overwrite=&quot;true&quot;>
    <cfoutput>
        Image blurred successfully.
    </cfoutput>
    <cfcatch type=&quot;image&quot;>
    <cfoutput>
        #cfcatch.message#
    </cfoutput>
    </cfcatch>
</cftry>

ヘルプをすばやく簡単に入手

新規ユーザーの場合