Forum
Image displayed looks darker than the original image file
I used the image.html from the content template to upload an image on my page. It however alters the appearance, in this case about 10% darker. Can this be resolved? And secondly I have bucket attribute in the code and it fails to create a bucket with that label whenever I upload an image.
Perch: 2.8.6
Production mode: Production (100)
Installed apps: content (2.8.6), assets (2.8.6), categories (2.8.6)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 1
App runtimes:
<?php
$apps_list = array(
'content',
'categories',
);
Editor plug-ins: markitup, ckeditor
H1: 36814574bfb66cab3e96ae027f8581b3
L1: f0bd24cc65694c27883f7d719aceaae0
headerColour: #000000
content_singlePageEdit: 1
helpURL:
siteURL: www.madhavanyc.com
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.6: done
latest_version: 2.8
on_sale_version: 2.8.6
headerScheme: dark
dashboard: 1
hide_pwd_reset: 1
content_hideNonEditableRegions: 0
content_frontend_edit: 0
logoPath: /perch/resources/madhava NYC - white stroke.jpg
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: C168080_madmax
PERCH_DB_SERVER: mysql411.ixwebhosting.com
PERCH_DB_DATABASE: C168080_madhavanyc
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/New_York
PERCH_EMAIL_FROM: markachen@gmail.com
PERCH_EMAIL_FROM_NAME: Mark Chen
PERCH_LOGINPATH: /perch
PERCH_PATH: /hsphere/local/home/c168080/test.madhavanyc.com/perch
PERCH_CORE: /hsphere/local/home/c168080/test.madhavanyc.com/perch/core
PERCH_RESFILEPATH: /hsphere/local/home/c168080/test.madhavanyc.com/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /hsphere/local/home/c168080/test.madhavanyc.com/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
HOSTING SETTINGS
PHP: 5.3.29
Zend: 2.3.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.1.73
MySQL server: 5.1.69-community-log
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dbase, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, json, ldap, mbstring, mcrypt, ncurses, OAuth, session, standard, posix, pspell, Reflection, Phar, SimpleXML, soap, sockets, exif, suhosin, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, curl, gmp, iconv, imap, mysqli, mysql, odbc, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, sqlite3, mongo, htscanner, PDFlib, trader, mhash, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 30M
PHP max form post size: 30M
PHP memory limit: 64M
Total max uploadable file size: 30M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
SERVER_PORT: 80
HTTP_HOST: test.madhavanyc.com
DOCUMENT_ROOT: /hsphere/local/home/c168080/test.madhavanyc.com
SCRIPT_FILENAME: /hsphere/local/home/c168080/test.madhavanyc.com/perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/?extended
HTTP_ALEXATOOLBAR_ALX_NS_PH: AlexaToolbar/alxg-3.3
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
HTTP_CONNECTION: keep-alive
PHP_FCGI_CHILDREN: 3
REMOTE_PORT: 57596
PATH: /usr/local/bin:/usr/bin:/bin
PWD: /hsphere/local/home/c168080/test.madhavanyc.com/cgi-bin
SERVER_ADMIN: webmaster@test.madhavanyc.com
REDIRECT_STATUS: 200
REDIRECT_QUERY_STRING: extended
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,nb;q=0.6
HTTP_REFERER: https://test.madhavanyc.com/perch/core/settings/diagnostics/
HTTP_DNT: 1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
REMOTE_ADDR: 100.37.165.214
SERVER_NAME: test.madhavanyc.com
SERVER_SOFTWARE: Apache
QUERY_STRING: extended
SERVER_ADDR: 98.130.128.2
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
REDIRECT_URL: /perch/core/settings/diagnostics/index.php
REQUEST_METHOD: GET
HTTP_COOKIE: cmsa=1; PHPSESSID=rn1361tqdvrlehoqtd95203ku0
ORIG_SCRIPT_FILENAME: /hsphere/local/home/c168080/test.madhavanyc.com/cgi-bin/php53.cgi
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /hsphere/local/home/c168080/test.madhavanyc.com/perch/core/settings/diagnostics/index.php
ORIG_SCRIPT_NAME: /cgi-bin/php53.cgi
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME: 1431672000
argc: 1
<img src="<perch:content type="image" id="image" label="Image" width="800" />" alt="<perch:content type="text" id="alt" label="Description" required="true" help="e.g. Photo of MD John Smith with his best wig on" title="true" bucket="Bio-photos" />" /> ~~~
Please link to the original image plus the image uploaded via Perch.
https://test.madhavanyc.com/perch/resources/13-02-28-0100-2-1-w800.jpg this is the dark version I am seeing.
https://test.madhavanyc.com/perch/resources/13-02-28-0100-2-1.jpg Image seems to loose crispness and highlights dim.
but on the second question, the bucket attribute is not creating a bucket.
Can you show us your template?
Below is the html for that region
Can you show me the template that the 'Image' region is using?
Well I hope this is what you are asking for
I'd suggest having a look at the sharpening and quality options:
https://docs.grabaperch.com/docs/templates/attributes/type/image/
So if I want to add sharpening I would add something like this below.
No, you would need to add it to the image field: