Jump to content

Search the Community

Showing results for tags 'image resize'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 5 results

  1. Hi, I have a big image in my image field and want to resize it to 2280px before showing it to the user. Most images are fine and showing as expected, but with one I have the following error; Error: Out of memory (allocated 159383552) (tried to allocate 12288 bytes) (line 243 of /htdocs/process/wire/core/ImageSizerEngineGD.php) Why is this with one image and not with the other ones, and how to solve this? Greetz.
  2. My client is uploading images via CK Editor into a textarea. The image type is a transparent PNG like the one attached (head-three.png) However when Processwire resizes this image there are little black line all through. See the 'head' image on this page - http://thinkingtosuccess.co.uk/business/#tab2 The original image is attached. How can we avoid these black lines causing the image corruption?
  3. I have an issue where I want to have an image resized, but have both a cropped and non-cropped version available (of the same size!) The code to do this is simple: $imagefull = $image->size(320,320,array( 'cropping' => false); $imagecropped = $image->size(320,320,array( 'cropping' => true); However, this only creates ONE variant of the image: eg. imagename.320x320.jpg So the same image is shown twice in the output page, instead of the two options Can anyone suggest a clean way of doing this? (ie. not duplicating every base image) Is there a way of creating named Image Variations? And do these names go into the filename to guarantee uniqueness? eg. $image->addVariation($name,$size,$options) or similar Thanks
  4. Hi, I wonder if there is an easy way to resize an image in the filesystem? Reason is: I need to display the same image in different sizes in some templates, but the image is already in the filesystem (in fact, it is deployed by another system). Since it should work automatically, I don't want to use the backend and create a field for it by hand. For example: instead of doing something like this (every picture has to be sized with Photoshop beforehand): <img src="/mypath/myimage.png" width="250" alt=""/> <img src="/mypath/myimage.png" width="500" alt=""/> it would be convenient to do something like this (does NOT work, just for illustrating what I would like to achieve): <?php $image = new PageImage('/var/www/mypath/myimage.png'); ?> <img src="<?php echo $image->size(250,0)->url; ?>" width="250" alt=""/> <img src="<?php echo $image->size(500,0)->url; ?>" width="500" alt=""/> In this manner the system would do the resizing, and Photoshop could rest in peace. I know phpThumb or timThumb can do this similar as well, but I would like to do it the Processwire way. Any hints welcome
  5. Hi All, I have a template with a large header image (2,000px+). I want that image to span the entire browser window width, assuming the image is large enough on a user's screen. When I upload the image via the admin UI it seems to always be automatically resized (to 1140px) in width, in this case. I am building the site using the Processwire Blog Profile. I am not sure where this automated resize is occurring. Can anyone point me in the correct direction? I want the user to be able to upload the images using the admin UI, rather than me hard-coding the images in the header. Thanks in advance to anyone that can offer some advice. I really appreciate it. Shane
×
×
  • Create New...