Поддержать Проект

Обратная связь

[MODX] Guru
  • Информация
  • Разработчикам
  • Дополнения
    • DocLister
    • DLMenu
    • DLCrumbs
    • DLBuildMenu
    • DLLastViews
    • DLSiblings
    • DLRequest
    • DLglossary
    • DLSitemap
    • DocInfo
    • FormLister
    • Wayfinder
    • phpthumb
      • Параметры
      • Опции
      • Примеры
    • LikeDislike
    • eForm
    • Ditto
    • multiTV
    • AjaxMegaSearch
    • AjaxSearch
    • WebLoginPE
    • Breadcrumbs
    • CodeMirror
    • AnythingRating
    • Easy Newsletter
    • FirstChildRedirect
    • OpenGraphTags
    • ddTypograph
    • TagSaver
    • BlackList
    • CfgTv
    • ModxAccount
    • Forgot Manager Login
    • GetField
    • if
    • Jot
    • ListChild
    • ListIndexer
    • ManagerManager
    • ddMMEditor
    • MaxiGallery
    • MemberCheck
    • ddGetMultipleField
    • MetaX
    • MODxBB и phpBB
    • Yams
    • Personalize
    • PHx
    • Reflect
    • tagLinks
    • TransAlias
    • TvTagCloud
    • UltimateParent
    • WebSignup
    • WebLogin
    • countViews
    • thumb
    • imageCaptor
    • optimizeJPG
    • Preview Next
    • Shopkeeper
    • SiteMap
    • Sass
    • Selector
    • SimpleGallery
    • SimpleTube
    • SimpleFiles
    • Star Rating
    • MinifyX
    • adminNav
    • SimplePolls
    • CResource
    • MODxAPI
    • customTables
    • HtmlInLine
    • HtmlMinModxEvo
    • SHKUserProfile
    • PickDocsInTree
    • evoSearch
    • editDocs
    • PageBuilder
    • HybridAuth
    • Compare
    • alterTitle
  • Виджеты
  • Уроки
  • Разработчики
  • Готовые примеры
  • Блог
  • Конфиги
  • HTML коды
© [MODX] Guru
  • phpthumb

phpthumb: Примеры

  • Дополнения
  • phpthumb
  • Примеры
3847

phpthumb: Примеры

Изменение размера

Исходное изображение в 3264х2448 пикселей изменяем в 267х200 пикселей с помощью опций zc, far и iar

phpthumb 3264х2448 пикселей изменяем в 267х200 пикселей с помощью опций zc, far и iar phpthumb 3264х2448 пикселей изменяем в 267х200 пикселей с помощью опций zc, far и iar phpthumb 3264х2448 пикселей изменяем в 267х200 пикселей с помощью опций zc, far и iar phpthumb 3264х2448 пикселей изменяем в 267х200 пикселей с помощью опций zc, far и iar
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200`]]"> 
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,far=C,bg=e2e2e2`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,iar=1`]]">

Степень сжатия

phpthumb Степень сжатия phpthumb Степень сжатия phpthumb Степень сжатия phpthumb Степень сжатия
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,far=C,bg=e2e2e2,q=1`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,far=C,bg=e2e2e2,q=50`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,far=C,bg=e2e2e2,q=75`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,far=C,bg=e2e2e2,q=95`]]">

Поворот изображения

phpthumb Поворот изображения phpthumb Поворот изображения phpthumb Поворот изображения phpthumb Поворот изображения
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,ra=45`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,ra=-45`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,ra=90`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,ra=180`]]">

Изменение яркости

phpthumb Изменение яркости phpthumb Изменение яркости phpthumb Изменение яркости phpthumb Изменение яркости
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=brit|-255`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=brit|-25`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=brit|25`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=brit|255`]]">

Изменение контрастности

phpthumb Изменение контрастности phpthumb Изменение контрастности phpthumb Изменение контрастности phpthumb Изменение контрастности
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=cont|-255`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=cont|-25`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=cont|25`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=cont|255`]]">

Гамма-коррекция

phpthumb Гамма-коррекция phpthumb Гамма-коррекция phpthumb Гамма-коррекция phpthumb Гамма-коррекция
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=gam|0.01`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=gam|1.0`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=gam|5.0`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=gam|10`]]">

Насыщенность

phpthumb Насыщенность phpthumb Насыщенность phpthumb Насыщенность phpthumb Насыщенность
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=sat|0`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=sat|-10`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=sat|-50`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=sat|-100`]]">

Водяные знаки

phpthumb Водяные знаки phpthumb Водяные знаки phpthumb Водяные знаки phpthumb Водяные знаки
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=wmi|/assets/images/phpthumb/water.png|BR|50|5|5`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=wmi|/assets/images/phpthumb/water.png|C|50`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=wmi|/assets/images/phpthumb/water.png|*|50|5|5`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=wmi|/assets/images/phpthumb/water.png|C|50|||45`]]">

Скругление углов

phpthumb Скругление углов phpthumb Скругление углов phpthumb Скругление углов phpthumb Скругление углов
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=ric|15|15`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=ric|50|50`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=ric|100|100`]]">
<img src="[[phpthumb? &input=`assets/images/phpthumb/img_71691.JPG` &options=`w=267,h=200,zc=C,fltr[]=ric|50|15`]]">