#51 Re: Developer Help » Black (broken?) images when using crop. » March 10, 2016 12:32pm

One of the longest was: "smallpicture_img_20150911_142804-2.jpg"
Hmm, not that long actually.. hehe
So the limit wasn't the issue I think...
I'm also curious about what's wrong with a varchar. It should be working fine I think.

#52 Re: Developer Help » Black (broken?) images when using crop. » March 10, 2016 6:39am

Thanks for thinking with me! I have found the problem. In the module there was set a varchar (255) for the upload field. I think the file names were too long becouse of the prefix. I changed it to text and after that everything was working perfectly smile
It think varchar (255) is the default setting for upload fields. Maybe it's good to consider an extended limit on the default upload field in module builder, becouse pictures taken with a phone usually have long file names with a date and that kind of stuff. (If it's not the default setting: I've said nothing wink )

#53 Re: Developer Help » Black (broken?) images when using crop. » March 9, 2016 9:02am

Allright, thanks! I've used the method you mentioned but it's still not working. I am displaying content from a module by the way. Maybe that makes a difference?

This is what I have:

<ul class="bxslider">
<?
	$homeSlider = new HomeSlider();
	$sliders = $homeSlider->getApproved(3);
	foreach ($sliders as $slideItem) {
		$image = $slideItem['slide_image'];
		
		$thumb_image = BigTree::prefixFile($image, "thumbslide_"); 
		?>
		
			<li>
				<div class="wrapper">
					<img src="<?=$thumb_image?>">
					<div class="slideDescription">
						<span class="redSpan"><?=$slideItem['slide_heading']?> |</span>
						<span class="graySpan"><?=$slideItem['slide_subheading']?></span>
						<p><?=$slideItem['slide_description']?></p>
						<a href="<?=$slideItem['slide_link']?>" alt=""><?=$slideItem['button_text']?></a>
					</div>
				</div>
			</li>
	<?}
?>
</ul>

#54 Re: Developer Help » Black (broken?) images when using crop. » March 5, 2016 12:58pm

Hello,

Thanks for the quick response! When I look in Developer -> Site Status I don't see any errors. Only a warning from the favicon.

Do I need to make extra fields in the module table for cropped images?  I don't see a link to a cropped image in the database table either. What does "preview prefix (for forms)" do by the way? do I need to set something there? And does it matter what I set?

Thank you in advance.

#55 Developer Help » Black (broken?) images when using crop. » March 5, 2016 11:30am

Terrra-Robin
Replies: 9

Hello,

I've been trying to use cropped images on my website for a slider on the homepage. But when I want to display an image, everything is black. I also can't see a crop preview when I upload a file, but when I hit "upload" I don't have any errors or something... And there is a (black) image file uploaded in the right directory .

Do you guys know what I did wrong?

#56 Re: Feature Requests » Tutorials, basic how-to » March 5, 2016 11:13am

Thanks for the answer. Allright, sounds good! I'm looking forward to it. Luckely you guys are very active on the forum.

#57 Feature Requests » Tutorials, basic how-to » February 26, 2016 6:04pm

Terrra-Robin
Replies: 2

Helloi,

I've been using bigtree for a while now and it's getting better and better smile.

But one thing I really hope to see in the future as a beginning devolopper, are tutorials of the basic principles in Bigtree. The workflow and what's the best way to setup your templates and modules in the most common situations. Like how to show content from a callout or module, how to make a basic photo gallery (with crops and thumnails) or a routed tempate example.
Would be great to have for the new bigtree users.

I don't know if this is the right place for my post, but it's a kind of a feature I thought.
Thank you in advance.

#58 Re: Feature Requests » Option to Keep Only Cropped Photo » February 14, 2016 11:46am

timbuckingham wrote:

If you setup a crop without a prefix it'll replace the originally uploaded photo. When we're worried about keeping the original photo for whatever reason, we usually just setup a thumbnail to 2000x2000 to prevent the ridiculously large files from taking up space.

I was having the same issue. Thanks for the solution! I think it would be good to mention that in the description of the prefix field like: "when not filled in, we only upload the cropped size of your picture" .

#59 Re: Feature Requests » Placeholder Image » February 14, 2016 11:40am

No worries, it was pretty quick in my opinion. Thanks for the response and adding it to the queue, that's reall cool! We're looking forward to it.

#60 Feature Requests » Placeholder Image » February 7, 2016 4:19pm

Terrra-Robin
Replies: 2

Hello,

Over the last few months we have been very pleased with Bigtree. An idea popped into my mind today which could save a lot of time in styling the websites. Often we have to search for an image to use as placholder, then upload another picture over and over again, which causes a lot of server bandwidth.

It would be awesome if we can set a placeholder image if there is no picture uploaded. I think it would be the best to have that option when you create your resources. On the same place where you can set the cropping settings. Or maybe as a global setting for the entire website.

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.